AppGalleryConnect / agc-android-demos

This repository including all of exsiting demos of AppGallery Connect Service in Android.
Apache License 2.0
17 stars 2 forks source link

Cannot use @TaskAction annotation on method IncrementalTransformTask.transform() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method. #7

Open muziri opened 6 months ago

muziri commented 6 months ago

版本:'com.android.tools.build:gradle:7.4.2' gradle-wrapper.properties中gradle版本gradle-8.1.1-all

编译失败:

huan721 commented 6 months ago

Use the APMS SDK of the latest version.

If the AppGallery Connect plugin of a version earlier than 1.9.1.300 is integrated and Gradle 8.0 is used, add the following code to the project-level gradle.properties file:

apmsInstrumentationEnabled=false

please see: https://developer.huawei.com/consumer/en/doc/AppGallery-connect-Guides/agc-apm-android-getstarted-0000001052887262#section640224332214