GithubHelp home page GithubHelp logo

Comments (3)

stewartmiles avatar stewartmiles commented on May 28, 2024

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 tocom.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.

echeg avatar echeg commented on May 28, 2024

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.

stewartmiles avatar stewartmiles commented on May 28, 2024

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.

  1. 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.
  2. 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.
  3. Replace Assets/Plugins/Android/Firebase/AndroidManifest.xml with the attached file. This changes a line in the AndroidManifest.xml from package="com.google.firebase" to package="com.google.firebase.unity".
  4. Run the Android Resolver (use the Assets --> Play Services Resolver --> Android Resolver --> Resolver Client Jars menu option).
  5. Export the Android Studio project.
  6. (We're working on a better solution for this step) Copy the contents of Assets/Plugins/Android/Firebase/libs/ to your_android_studio_project/src/main/jniLibs

messaging_android_studio_patch.zip

from quickstart-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.