I am using Firebase Database in my Unity project, but I am having some issues when building the project for android. It runs fine in the unity player, but when I try to build and run for android, I get the following error message.
I have double checked that the Firebase SDK is imported correctly.
The console outputs this error;
IOException: Failed to Move File / Directory from 'Temp/StagingArea\android-libraries\firebase-core-11.2.0\classes.jar' to 'Temp/StagingArea\android-libraries\firebase-core-11.2.0\libs\classes.jar'.
After checking the Temp folder I see that these files does indeed not exist. Should these files be generated during build? Am I missing something?
In your build settings change it from Internal to Gradle and then add a build.gradle file to your root folder
Here's a sample build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With