D
Daniel Westberg
Guest
I get a build error after I've added both GooglePlayServicesExtension & GooglePushNotificationsExtension
_________________________________________________________________________________________________________________________________________________________________________________
First this:
* What went wrong:
Could not determine the dependencies of task ':com.:******************:compileReleaseJavaWithJavac'.
> In project 'com.:******************' a resolved Google Play services library dependency depends on another
at an exact version (e.g. "[17.0.4]", but isn't being resolved to that version. Behavior exhibited by the library will
be unknown.
Dependency failing: com.google.firebase:firebase-messaging:17.3.4 -> com.google.firebase:firebase-iid@[17.0.4], but fire
base-iid version was 20.1.5.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'com.:******************' depends onto com.google.firebase:firebase-messaging@{strictly 17.3.4}
-- Project 'com.:******************' depends onto com.google.firebase:firebase-analytics@{strictly 17.4.1}
-- Project 'com.:******************' depends onto com.google.android.gmslay-services-measurement-api@{st
rictly 17.4.1}
-- Project 'com.:******************' depends onto com.google.firebase:firebase-iid@{strictly 20.1.5}
-- Project 'com.:******************' depends onto com.google.firebase:[email protected]
-- Project 'com.:******************' depends onto com.google.firebase:[email protected]
For extended debugging info execute Gradle from the command line with ./gradlew --info :com.daniel_westberg.fett_najsa_o
lspel:assembleDebug to see the dependency paths to the artifact. This error message came from the google-services Gradle
plugin, report issues at https://github.com/google/play-services-plugins and disable by adding "googleServices { disabl
eVersionCheck = false }" to your build.gradle file.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
_________________________________________________________________________________________________________________________________________________________________________________
Then after adding googleServices { disableVersionCheck = false } in the bottom of my build.gradle file I get this error:
* What went wrong:
Execution failed for task ':com.******************:mergeDebugResources'.
> [string/google_app_id] W:\com.******************\src\main\res\values\gfn_values.xml [string/google_app_id] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/default_web_client_id] W:\com.******************\src\main\res\values\gfn_values.xml [string/default_web_client_id] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/firebase_database_url] W:\com.******************\src\main\res\values\gfn_values.xml [string/firebase_database_url] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/google_api_key] W:\com.******************\src\main\res\values\gfn_values.xml [string/google_api_key] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/project_id] W:\com.******************\src\main\res\values\gfn_values.xml [string/project_id] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
_________________________________________________________________________________________________________________________________________________________________________________
(com.****************** = com.my_name.my_app_name)
After some "research" I found some plugins that seem to help with this exact issue: https://github.com/dpa99c/cordova-android-firebase-gradle-release + https://github.com/dpa99c/cordova-android-play-services-gradle-release
But I have no idea if I have any use of it/if I can use it with GMS2. I'm pretty much a noob when it comes to publishing apps.
This is my first ever app to publish, so... any help would be appreciated!
_________________________________________________________________________________________________________________________________________________________________________________
First this:
* What went wrong:
Could not determine the dependencies of task ':com.:******************:compileReleaseJavaWithJavac'.
> In project 'com.:******************' a resolved Google Play services library dependency depends on another
at an exact version (e.g. "[17.0.4]", but isn't being resolved to that version. Behavior exhibited by the library will
be unknown.
Dependency failing: com.google.firebase:firebase-messaging:17.3.4 -> com.google.firebase:firebase-iid@[17.0.4], but fire
base-iid version was 20.1.5.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'com.:******************' depends onto com.google.firebase:firebase-messaging@{strictly 17.3.4}
-- Project 'com.:******************' depends onto com.google.firebase:firebase-analytics@{strictly 17.4.1}
-- Project 'com.:******************' depends onto com.google.android.gmslay-services-measurement-api@{st
rictly 17.4.1}
-- Project 'com.:******************' depends onto com.google.firebase:firebase-iid@{strictly 20.1.5}
-- Project 'com.:******************' depends onto com.google.firebase:[email protected]
-- Project 'com.:******************' depends onto com.google.firebase:[email protected]
For extended debugging info execute Gradle from the command line with ./gradlew --info :com.daniel_westberg.fett_najsa_o
lspel:assembleDebug to see the dependency paths to the artifact. This error message came from the google-services Gradle
plugin, report issues at https://github.com/google/play-services-plugins and disable by adding "googleServices { disabl
eVersionCheck = false }" to your build.gradle file.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
_________________________________________________________________________________________________________________________________________________________________________________
Then after adding googleServices { disableVersionCheck = false } in the bottom of my build.gradle file I get this error:
* What went wrong:
Execution failed for task ':com.******************:mergeDebugResources'.
> [string/google_app_id] W:\com.******************\src\main\res\values\gfn_values.xml [string/google_app_id] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/default_web_client_id] W:\com.******************\src\main\res\values\gfn_values.xml [string/default_web_client_id] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/firebase_database_url] W:\com.******************\src\main\res\values\gfn_values.xml [string/firebase_database_url] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/google_api_key] W:\com.******************\src\main\res\values\gfn_values.xml [string/google_api_key] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
[string/project_id] W:\com.******************\src\main\res\values\gfn_values.xml [string/project_id] W:\com.******************\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
_________________________________________________________________________________________________________________________________________________________________________________
(com.****************** = com.my_name.my_app_name)
After some "research" I found some plugins that seem to help with this exact issue: https://github.com/dpa99c/cordova-android-firebase-gradle-release + https://github.com/dpa99c/cordova-android-play-services-gradle-release
But I have no idea if I have any use of it/if I can use it with GMS2. I'm pretty much a noob when it comes to publishing apps.
This is my first ever app to publish, so... any help would be appreciated!