Closed epsmarkh closed 2 years ago
Thanks for flagging this issue, it seems that the Messaging srcaar has a problem with the AndroidManifest within it. We will try to get a fix out. In the meantime, as a workaround you can:
package="${applicationId}"
with package="com.google.firebase.unity.messaging"
Fixed in 8.10.1
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Android APK target will not build when mainTemplater.gradle is enabled. An error occurs as follows: Execution failed for task ':unityLibrary:javaPreCompileRelease'.
With it disabled, APK builds fine.
I suspect it is due to the change to the AndroidManifest.xml contained in the Messaging library. It used to have an explicit package name but now uses ${applicationId}' and is not being replaced when use as a tgz import from Unity Package Manager.
Steps to reproduce:
Open the quick start messaging example. Import the dependency manager, firebase app and firebase messaging from tgz. Switch to Android platform. Enable mainTemplate.gradle in player settings and attempt a build. The build will fail
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? Yes What's the issue repro rate? (eg 100%, 1/5 etc) 100%
What happened? How can we make the problem occur? APK will not build. You can recreate it just by switching to the Android platform and building. This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will likely receive a faster response on your issue.
Relevant Code:
N/A no code is required. Simply import the packages and build the sample.
Sample with relevant packages attached
testapp.zip