-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:Execution failed for task ':react-native-onesignal:processReleaseResources'. > Error: more than one library with package name 'com.google.android.gms.license' #430
Comments
Looks good @ivan133 |
It's not mine ;) |
+1 |
To fix this issue for now, I would recommend adding this grade plugin to the very top of your
In the longer term, we will be fixing this issue in a cleaner way with an update to how the SDK handles dependencies. We will probably be releasing it in the next day or two. |
@Nightsd01 I did add those options in my |
Cool, I hope the changes can be merged asap. Really appreciate for the short turnaround. Thanks. |
@Nightsd01 yesterday my app was running normally, today is giving this error :( |
@jxnata post your:
|
build.gradle:
app/build.gradle:
|
You’re not implementing the gradle config params in your gradle files, producing erratic behaviour with multiple versions of google dependencies colliding. |
@christocracy I am having the same issue as @jxnata . Here are my files: build.gradle `
` app/build.gradle
import com.android.build.OutputFile /**
project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" /**
/**
android {
} dependencies { // Run this once to be able to run the application with BUCK |
@christocracy Sorry, but how do I do this? It's my first android app rsrs... Thanks! |
To your ext {
compileSdkVersion = 26
targetSdkVersion = 26
buildToolsVersion = "26.0.2"
supportLibVersion = "26.1.0"
googlePlayServicesVersion = "11.8.0"
} Many 3rd party modules are aware of these variables and will align their dependencies to them. It's up to you to decide what specific versions to apply. In your android {
+ compileSdkVersion rootProject.compileSdkVersion
+ buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
+ targetSdkVersion rootProject.targetSdkVersion
.
.
.
}
}
dependencies {
.
.
+ compile "com.android.support:appcompat-v7:$rootProject.supportLibVersion" // <-- note double-quotes for variable interpolation
////
// If you're importing play-services dependencies in your project, use the
// googlePlayServicesVersion
//
+ compile "com.google.android.gms:play-services-ads:$rootProject.googlePlayServicesVersion"
} |
@christocracy |
@ayush221b @christocracy I was finally able to solve it! The error was in the gradle wrapper version. I was using version 2.14, updated and worked perfectly: /android/gradle/wrapper/gradle-wrapper.properties
|
You'll want to get in the habit of using these Gradle Configuration Properties. You can visit the eg: here's Many other modules are aware of these variables. Eg: here's |
Looks like the new gms breaks a lot of lib since "+" is now on the later version however it breaks the project.
Please if possible to support the ability to change the dependencies version for GCM: `facebook/react-native#18479
If possible if someone can create a PR similar to what @christocracy to the react-native-maps that would be awesome.
Example: react-native-maps/react-native-maps#2047
Thanks!
The text was updated successfully, but these errors were encountered: