HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
241 stars 68 forks source link

Updated to Gradle 8.6, failed to build with HMS for release #356

Open A3859 opened 3 weeks ago

A3859 commented 3 weeks ago

Description recently updated gradle to 8.6, running on emulator works fine. but fail when try to gradlew app:assembleRelease, attached with error below. Please help.

Expected behavior compile release correctly

Current behavior failed to compile ext { buildToolsVersion = "30.0.2" minSdkVersion = 29 compileSdkVersion = 34 targetSdkVersion = 34 supportLibVersion = "28.1.1" googlePlayServicesVersion = "16.0.0" googlePlayServicesVisionVersion = "15.0.2" androidMapsUtilsVersion = "0.5+" googlePlayServicesAuthVersion = "16.0.1" kotlinVersion = '1.6.21' excludeAppGlideModule = true }

dependencies {
    classpath 'com.android.tools.build:gradle:7.4.2'
    classpath 'com.google.gms:google-services:4.3.15'
    classpath "io.realm:realm-gradle-plugin:10.16.0"
    classpath 'com.huawei.agconnect:agcp:1.9.1.300'

Environment

zehratok commented 1 week ago

I am encountering the same issue with react-native-hms-iap. I haven't found any solution, have you?

Chswell commented 1 week ago

I have the same problem, I can't solve it. gradle 8.0.1 react 0.72.12 "@hmscore /react-native-hms-availability": "^6.12.0-300"