I used to be able to generate Release versions of Juce-generated (3.20) Android apps by using the "Generate Signed APK" command in the Android Studio Build menu.
It was a long and tedious process and now thanks to JUCE 4 I can directly generate the debug versions using Android Studio fairly easily, but not the release versions. As a matter of fact, when I choose to enable only a release version (Android) in IntroJucer, when compiling I only see debug files generation (although files are created in the Release folder...). It was previously the case in JUCE 3.20 and that is why I was using the Generate Signed APK command, but now (using JUCE 4) if I try to use the Generate Signed APK the process ends up with the following error:
... :app:transformClassesAndResourcesWithProguardForArmeabi-v7aRelease Warning: Exception while processing task java.io.IOException: java.lang.ClassCastException: java.lang.String cannot be cast to java.io.File :app:transformClassesAndResourcesWithProguardForArmeabi-v7aRelease FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardForArmeabi-v7aRelease'. > java.io.IOException: java.lang.ClassCastException: java.lang.String cannot be cast to java.io.File
All of this is very confusing. Has anyone been able to generate a Release version with Android Studio ? Has anyone been able to use Generate Signed APK ? Again, this used to work when manually converting Juce 3.20 projects to comply with Android Studio format.