-
Notifications
You must be signed in to change notification settings - Fork 68
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
Android build error v0.72.6 [HMS-PUSH] #301
Comments
I have same error after upgrading from rn 0.71.10 to 0.72.6. We have same project with no-huawei libs and its building fine.
|
I managed to fix this error by hardcoding version for Android Gradle Plugin: - classpath("com.android.tools.build:gradle")
+ classpath "com.android.tools.build:gradle:7.4.1" This is based on the huawei documentation: https://developer.huawei.com/consumer/en/doc/HMSCore-Guides/integrate-as-sdk-0000001050435953#section1385415381490 |
@Akatroj Thanks, but I think its not solution for some of plugins like ads and location. I have these two and that solution is not working for me: What version of com.huawei.agconnect:agcp are you using? |
Here they already posted a changelog for 6.12.0 (today), which says that it will work on newest react-native, but this version is not yet available to download I think |
Same problem here, I would like to avoid patching their package manually so I guess we are stuck until they publish the 6.12.0 ? and the last post here mentioning this is 3 weeks old so... I changed the agconnect version in my build.gradle to 1.9.1.301 (it says it is compatible with gradle 8 in the changelog) but it does not work |
@Lakston That combination is working for us: gradle-wrapper.properties: build.gradle:
app/build.gradle: package.json:
|
i have the same problem? any updates? |
Description
When I start the project after installation, it gives a build.gradle error.
Expected behavior
It must run in dev mode. But I get a compilation error in dev mode.
Current behavior
`* What went wrong:
A problem occurred evaluating project ':app'.
Screenshots
Logs
`
A problem occurred evaluating project ':app'.
2: Task failed with an exception.
A problem occurred configuring project ':app'.
BUİLD FAILED in 2s
`
Environment
build.gradle
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 24
compileSdkVersion = 33
targetSdkVersion = 33
kotlinVersion = "1.9.0"
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
}
allprojects {
repositories {
maven { url 'http://developer.huawei.com/repo/';allowInsecureProtocol = true }
}
}`
app/build.gradlew
top => apply plugin: "com.huawei.agconnect"
dependencies => implementation project(':react-native-hms-push'),implementation 'com.huawei.agconnect:agconnect-core:1.9.1.300'
The text was updated successfully, but these errors were encountered: