Gradle build: Could not compile build.gradle error
So I upgraded to Unity 2017.4.1 from Unity 5.6.5 to get around this "duplicate BuildConfig.class" error when building with Gradle. It seems to have fixed it, though this new error may just be covering it up.
Now I'm facing this "General error during class generation" and/or ArrayIndexOutOfBoundsException. Not really sure what's causing it or where to take it. Any thoughts very much appreciated.
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/XXX/Projects/YYY/Temp/gradleOut/build.gradle'
* What went wrong:
Could not compile build file '/Users/XXX/Projects/YYY/Temp/gradleOut/build.gradle'.
> startup failed:
General error during class generation: 289
java.lang.ArrayIndexOutOfBoundsException: 289
at org.codehaus.groovy.classgen.asm.CallSiteWriter.getCreateArraySignature(CallSiteWriter.java:58)
at org.codehaus.groovy.classgen.asm.CallSiteWriter.makeCallSite(CallSiteWriter.java:317)
at org.codehaus.groovy.classgen.asm.InvocationWriter.makeCachedCall(InvocationWriter.java:307)
etc etc etc....
Any updates on this problem? I'm experiencing the exact same exception during a build on 2017.4.1.
Sorry for the late response. There was an update to the thread mentioned below which solved this particular problem (or at least got it building, haven't been able to get past other errors on my end to test it deployed). Here: http://answers.unity.com/comments/1506543/view.html
Answer by Ciryus · Apr 12, 2018 at 11:48 AM
You should take a look at this: https://answers.unity.com/questions/1480075/gradle-build-error-when-update-from-564p4-to-20173.html
Thanks I see that, and now your new comment as well. Unfortunately there's not much there to go off of and no real solution found yet either.
The answer above worked for me, it was Strea$$anonymous$$gAssets
Your answer
Follow this Question
Related Questions
Unity says that I'm missing my NDK and SDK libraries, but I have them installed via Unity hub? 1 Answer
After compiling and installing apk game becomes transparent and you can see the mobile home screen 1 Answer
Android support files and gradle build error 0 Answers
No GearVR in My app, But it always start GearVR when I start my app! 0 Answers
I am getting an error when upgrading the Unity version. 0 Answers