Closed mahermalhem closed 2 months ago
same, please help
Have anybody solution?
Not yet guys no one knows
now it is working with me on0.74.2
what i did !
first one download the library
yarn add @hmscore/react-native-hms-push
you can use 6.12.0-301
or 6.12.0-300
there is no difference between them. see
android/build.gradle
inside repositories
block add
maven { url 'https://developer.huawei.com/repo/' }
.
and in dependencies
add
classpath 'com.huawei.agconnect:agcp:1.9.1.300'
and at the bottom of the file add
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://developer.huawei.com/repo/' }
}
}
apply plugin: "com.huawei.agconnect"
your file should be like this
android/settings.gradle
. add
include ':react-native-hms-push' project(':react-native-hms-push').projectDir = new File(rootProject.projectDir, '../node_modules/@hmscore/react-native-hms-push/android')
finally in android/app/build.gradle
. inside dependencies
add
implementation "com.huawei.hms:push:6.12.0.300"
then run your app on android studio
it should works fine !
@omarabualhija Thanks, everything went good and worked now even on 0.74.1
don't know what the issue was exactly, i had done same implementaion on the days i was working on also i have samll comment on setting.gradle file always put the
include ':react-native-hms-push' project(':react-native-hms-push').projectDir = new File(rootProject.projectDir, '../node_modules/@hmscore/react-native-hms-push/android')
before the
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
Closed ...
Description i am trying to impl this pkg and it's features for sending notifications https://www.npmjs.com/package/@hmscore/react-native-hms-push?activeTab=versions
on RN-V 0.74.1 and each time i write apply plugin: "com.huawei.agconnect"
it wont sync
After i tried manual installation
What went wrong: A problem was found with the configuration of task ':react-native-hms-push:copyDebugJniLibsProjectOnly' (type 'LibraryJniLibsTask').
Reason: Task ':react-native-hms-push:copyDebugJniLibsProjectOnly' uses this output of task ':hmscore_react-native-hms-push:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Try:
Exception is: org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':react-native-hms-push:copyDebugJniLibsProjectOnly' (type 'LibraryJniLibsTask').
Reason: Task ':react-native-hms-push:copyDebugJniLibsProjectOnly' uses this output of task ':hmscore_react-native-hms-push:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions: