Skip to content
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

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

Open
A3859 opened this issue Sep 9, 2024 · 0 comments
Open

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

A3859 opened this issue Sep 9, 2024 · 0 comments

Comments

@A3859
Copy link

A3859 commented Sep 9, 2024

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.

  • What went wrong:
    Some problems were found with the configuration of task ':app:bundleReleaseJsAndAssets' (type 'Exec').

    • Gradle detected a problem with the following location: 'F:\WORK\xxx\xxxx'.

      Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':@hmscore_react-native-hms-analytics:compileReleaseAidl' 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:

      1. Declare task ':@hmscore_react-native-hms-analytics:compileReleaseAidl' as an input of ':app:bundleReleaseJsAndAssets'.
      2. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:compileReleaseAidl' from ':app:bundleReleaseJsAndAssets' using Task#dependsOn.
      3. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:compileReleaseAidl' from ':app:bundleReleaseJsAndAssets' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

    • Gradle detected a problem with the following location: 'F:\WORK\xxx\xxx'.

      Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':@hmscore_react-native-hms-analytics:compileReleaseJavaWithJavac' 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:

      1. Declare task ':@hmscore_react-native-hms-analytics:compileReleaseJavaWithJavac' as an input of ':app:bundleReleaseJsAndAssets'.
      2. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:compileReleaseJavaWithJavac'
        from ':app:bundleReleaseJsAndAssets' using Task#dependsOn.
      3. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:compileReleaseJavaWithJavac'
        from ':app:bundleReleaseJsAndAssets' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

    • Gradle detected a problem with the following location: 'F:\WORK\xxx\xxx'.

      Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':@hmscore_react-native-hms-analytics:compileReleaseRenderscript' 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:

      1. Declare task ':@hmscore_react-native-hms-analytics:compileReleaseRenderscript' as an input of ':app:bundleReleaseJsAndAssets'.
      2. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:compileReleaseRenderscript' from ':app:bundleReleaseJsAndAssets' using Task#dependsOn.
      3. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:compileReleaseRenderscript' from ':app:bundleReleaseJsAndAssets' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

    • Gradle detected a problem with the following location: 'F:\WORK\xxx\xxx'.

      Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':@hmscore_react-native-hms-analytics:packageReleaseResources' 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:

      1. Declare task ':@hmscore_react-native-hms-analytics:packageReleaseResources' as an input of ':app:bundleReleaseJsAndAssets'.
      2. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:packageReleaseResources' from ':app:bundleReleaseJsAndAssets' using Task#dependsOn.
      3. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:packageReleaseResources' from ':app:bundleReleaseJsAndAssets' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

    • Gradle detected a problem with the following location: 'F:\WORK\xxx\xxx'.

      Reason: Task ':app:bundleReleaseJsAndAssets' uses this output of task ':@hmscore_react-native-hms-analytics:generateReleaseResValues' 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:

      1. Declare task ':@hmscore_react-native-hms-analytics:generateReleaseResValues' as an input of ':app:bundleReleaseJsAndAssets'.
      2. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:generateReleaseResValues' from ':app:bundleReleaseJsAndAssets' using Task#dependsOn.
      3. Declare an explicit dependency on ':@hmscore_react-native-hms-analytics:generateReleaseResValues' from ':app:bundleReleaseJsAndAssets' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

  • 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.

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

  • Platform: React-Native
  • Kit Version
    "@hmscore/react-native-hms-analytics": "^6.12.0-301",
    "@hmscore/react-native-hms-availability": "^6.12.0-300",
    "@hmscore/react-native-hms-map": "^6.11.2-303",
    "@hmscore/react-native-hms-push": "^6.12.0-302",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant