Just upgraded to 0.25, and included the Firebase API in my project. All setup correctly, but build is failing due to:
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/caseywilliams/Documents/HaygroveApp/HaygroveApp/build/Android/Debug/HaygroveApp/app/build.gradle' line: 122
* What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/google/gms/googleservices/GoogleServicesPlugin : Unsupported major.minor version 51.0
I’m not getting the same error, but failing to build/preview for Android. I too have run the fuse install android command and still not successfully building.
Caseys-MBP:authexample caseywilliams$ fuse build -t=Android -DGRADLE --set:Config.Java.JDK.Directory="/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home"
Uno 0.35.6 (build 3582) OS X 10.11 i386 a76249a
Configuring (0.75s)
Compiling syntax tree (2.03s)
Generating code and data (5.15s)
Building Android app
2/2: AuthExample.apk
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
(133.45s)
Build completed in 141.40 seconds
Thanks all!
P.S
After this I’ll no longer need to set the JDK version as an argument when building right?
Well… the AuthExample app from Chris’ Firebase Wiki but when building my app I get this:
Generating code and data (4.95s)
Building Android app
2/2: HaygroveApp.apk
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForArm7Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
please apply google-services plugin at the bottom of the build file.