Comments (3)
The `Error:Execution failed for task ':processDebugResources'.
Error: more than one library with package name 'com.google.firebase'
problem looks like a bug on our end. This is a dummy AndroidManifest.xml to work with Unity's old build system, you can change the package name to
com.google.firebase.unity` to workaround this error.
The Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15
is very bizzare as we support API level 14 and above (see https://android-developers.googleblog.com/2016/11/google-play-services-and-firebase-for-android-will-support-api-level-14-at-minimum.html) . I just took a look at a local project and I'm seeing the highest requirement set to <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" />
as expected. Have you taken a look at the merged AndroidManifest.xml to see which component is causing this?
The messaging AAR is located in Assets/Firebase/m2repository/com/google/firebase/firebase-messaging-unity
. Copying just the strings.xml is a very bad idea, things will not work. You should be able to add Assets/Firebase/m2repository
as a maven repo at the top of your Gradle file which would allow it to find firebase-app-unity and firebase-messaging-unity which include the proguard rules required for the plugin, in addition the messaging AAR includes the messaging service implementation.
from quickstart-unity.
uses-sdk:minSdkVersion 14 cannot be smaller than version 15 is very bizzare as we support API level 14
This small problem and yes we solve this by rewrite
sdk android:minSdkVersion="14" android:targetSdkVersion="22" />
to android:minSdkVersion=15 because all our projects use this.
Copying just the strings.xml is a very bad idea, things will not work.
Yes. When I build with out it. App falls on dependency check.
You should be able to add Assets/Firebase/m2repository as a maven repo at the top of your Gradle file
May you provide example of build.gradle or android studio project archive?
from quickstart-unity.
Turns out the number of modifications you need to make should be pretty minimal - at least with our sample application - I've lined up fixes internally to hopefully get into our next release. I tested this out with Unity 5.5.0f3.
- Replace
firebase-messaging-unity-1.1.1.srcaar
with the attached file. This simply changes a line in the AndroidManifest.xml from<application android:label="@string/app_name">
to<application>
. This works around problems a missing reference to merging this package. - Delete
Assets/Plugins/Android/firebase-messaging-unity-1.1.1
which should result in the Play Services Resolver component expanding it with the updated component. - Replace
Assets/Plugins/Android/Firebase/AndroidManifest.xml
with the attached file. This changes a line in the AndroidManifest.xml frompackage="com.google.firebase"
topackage="com.google.firebase.unity"
. - Run the Android Resolver (use the
Assets --> Play Services Resolver --> Android Resolver --> Resolver Client Jars
menu option). - Export the Android Studio project.
- (We're working on a better solution for this step) Copy the contents of
Assets/Plugins/Android/Firebase/libs/
toyour_android_studio_project/src/main/jniLibs
messaging_android_studio_patch.zip
from quickstart-unity.
Related Issues (20)
- The updated SDK seems to have solved the connection issue! Much appreciated HOT 1
- Android: Push notification messages are not received when the application is closed! HOT 3
- FirebaseMessaging.MessageReceived triggers multiple times on receiving single push notification HOT 9
- Generation of the Firebase Android Resource File Failing Again HOT 3
- Coding Rules are not there! HOT 2
- Cloud functions not working with Quickstart project HOT 2
- corrupted com.google.firebase.firebase-messaging-unity-***.aar HOT 2
- [Bug] "FirebaseMessaging.RequestPermissionAsync()" is incorrect. HOT 1
- User Property values coming in late
- Cannot upload debug symbols for Android to crashlytics HOT 1
- How to change Dependencies download destination path? HOT 1
- Unity Firebase App works in editor but not in build HOT 1
- Newbie - Guidance Needed About Firebase Projects Management (On Firebase Dashboard) HOT 1
- Crash on iPhone 6 on iOS 12 with Realtime Database HOT 2
- Targeting iOS version numbers requires upgrading to SDK version 6.24.0 or later
- When proper Firestore Unity support? HOT 2
- Unity [FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. HOT 1
- messaging/testapp not working HOT 3
- Cloud Messaging / build problems HOT 5
- GetValueAsync() in Realtime Database often enters infinite wait HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickstart-unity.