I am frequently facing this problem, where by android build fails with random plugin-download errors. It will successfully build 1 out of >10 times. Tested on Windows and Mac with the same problem. When it manages to build successfully, then it will continue to be successful in subsequent builds.
Sample error :
21:03:16.210 ERROR: There was a problem downloading plugin 'shared.android.support.v4\_com.coronalabs'. Please, try again. 21:07:30.471 ERROR: unable to fetch plugin download location for plugin.calendar (com.coronalabs). Error message: \ Oct 26 09:16:58.192 ERROR: configuring 'plugin.facebook.v4a\_com.coronalabs' failed!
It works now on Windows (Android build), but still fails on Mac with a facebook error (build fails on Android, but successful on iOS build). I rechecked the docs @ https://docs.coronalabs.com/plugin/facebook-v4a/index.html and my build.settings are correct. I even tried to build on the sample code (and adding facebook4a plugin in it, and it also fails with the same error). Part of my build.settings below :
android = { facebookAppId = "7363227965366XX", -- last 2 digits masked with XX .......
Below is a more detailed error log on Mac. The folder ‘/private/var/folders/_2/xqg4j0112l1d0gwl9xtxrkhr0000gn/T/CLtmpSO620F/template/app/build/corona-plugins’ could not be found on my Mac using Finder.
Oct 27 09:09:54.770 BUILD SUCCESSFUL Total time: 2 seconds Oct 27 09:10:50.622 ERROR: configuring 'plugin.facebook.v4a\_com.coronalabs' failed! Oct 27 09:10:50.623 Oct 27 09:10:50.722 Oct 27 09:10:50.723 FAILURE: Build failed with an exception. \* Where: Oct 27 09:10:50.729 Build file '/private/var/folders/\_2/xqg4j0112l1d0gwl9xtxrkhr0000gn/T/CLtmpw0sSg4/template/app/build.gradle.kts' line: 277 Oct 27 09:10:50.730 \* What went wrong: Could not open dsl remapped class cache for asjb297nagq0xp3vk65d48env (/Users/X/.gradle/caches/5.4.1/scripts-remapped/corona\_8h2slp6vczk2tt0y83ixli2rg/asjb297nagq0xp3vk65d48env/dsldcd040730888da95d185715568c9cc57). \> Could not open dsl generic class cache for script '/private/var/folders/\_2/xqg4j0112l1d0gwl9xtxrkhr0000gn/T/CLtmpw0sSg4/template/app/build/corona-plugins/plugin.facebook.v4a\_com.coronalabs/corona.gradle' (/Users/X/.gradle/caches/5.4.1/scripts/asjb297nagq0xp3vk65d48env/dsl/dsldcd040730888da95d185715568c9cc57). \> Could not compile script '/private/var/folders/\_2/xqg4j0112l1d0gwl9xtxrkhr0000gn/T/CLtmpw0sSg4/template/app/build/corona-plugins/plugin.facebook.v4a\_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
This is a known issue. But it’s sporadic and we can’t find the cause. Basically the facebook ID is 14 digits long and somewhere on some machine it’s truncating a couple of digits like it’s getting converted to a number some where. But it doesn’t happen to everyone. We’ve checked to see if its which build server you’re using and we can’t find a difference.