I installed the latest daily build and now the Build->Android doesn't work anymore. I am getting a 256 error. See attached. Is this happening to anyone else, is there workaround?
Jump to content
I found something in console:
ERROR: configuring 'plugin.fbAudienceNetwork_com.coronalabs' failed! FAILURE: Build failed with an exception. * Where: Build file '/private/var/folders/kg/y8hhm3qn2fg_zypdvwdg39tw0000gn/T/CLtmp9aUu5Y/template/app/build.gradle.kts' line: 277 * What went wrong: Could not open dsl remapped class cache for an70n180e0u86344v6da26u8g (/Users/user1/.gradle/caches/5.4.1/scripts-remapped/corona_6pwrsb2gz2smiowekkv2oxzwk/an70n180e0u86344v6da26u8g/dsldcd040730888da95d185715568c9cc57). > Could not open dsl generic class cache for script '/private/var/folders/kg/y8hhm3qn2fg_zypdvwdg39tw0000gn/T/CLtmp9aUu5Y/template/app/build/corona-plugins/plugin.fbAudienceNetwork_com.coronalabs/corona.gradle' (/Users/user1/.gradle/caches/5.4.1/scripts/an70n180e0u86344v6da26u8g/dsl/dsldcd040730888da95d185715568c9cc57). > Could not compile script '/private/var/folders/kg/y8hhm3qn2fg_zypdvwdg39tw0000gn/T/CLtmp9aUu5Y/template/app/build/corona-plugins/plugin.fbAudienceNetwork_com.coronalabs/corona.gradle'. > startup failed: General error during semantic analysis: Unsupported class file major version 57 java.lang.IllegalArgumentException: Unsupported class file major version 57 at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:184)
Tried on a newer macBook Pro, got this:
/Applications/Corona/Corona Simulator.app/Contents/Resources/build.xml:528: Execute failed: java.io.IOException: Cannot run program "/Applications/Corona/Corona Simulator.app/Contents/Resources/zipalign" (in directory "/var/folders/h7/cmph3fzn4r70js_n3ktkhp_80000gn/T/CLtmpwqrzjd"): error=86, Bad CPU type in executable
This computer has Java SDK 1.8, what does Bad CPU type mean? It's a Core i9 running Catalina.
Oh crap, spoke too soon -- that version built the apk but when I upload to google
Your app currently targets API level 27 and must target at least API level 28 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 28. Learn how.
I'm guessing I need a more recent version of Corona SDK, but then the facebook plugin is gonna fail right? So I am caught in a trap?
I would suggest everyone read the top post on this thread: https://forums.coronalabs.com/topic/75790-handling-bugs-with-android-x64-and-target-sdk-28/
And then crank up your console logging level. Capture the entire build. Use a service like pastebin.com and share the link here and we can take a look.
Generally speaking, an error 256 is a problem downloading a plugin, but having more info will help.
As an FYI you need to use 2019.3529 or later which has the required Android SDK 28+ support (supports 29) and it also meets Google's 64 bit requirement.
At a minimum you need to:
1. Remove this from build.settings