flutter_bugly icon indicating copy to clipboard operation
flutter_bugly copied to clipboard

Exception: The plugin flutter_bugly could not be built due to the issue above.

Open cying112115 opened this issue 4 years ago • 4 comments

运行报错:

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':generateReleaseRFile'.

This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry. The following AndroidX dependencies are detected: androidx.versionedparcelable:versionedparcelable:1.0.0, androidx.slidingpanelayout:slidingpanelayout:1.0.0, androidx.fragment:fragment:1.0.0, androidx.core:core:1.0.0, androidx.customview:customview:1.0.0, androidx.swiperefreshlayout:swiperefreshlayout:1.0.0, androidx.interpolator:interpolator:1.0.0, androidx.loader:loader:1.0.0, androidx.drawerlayout:drawerlayout:1.0.0, androidx.viewpager:viewpager:1.0.0, androidx.collection:collection:1.0.0, androidx.localbroadcastmanager:localbroadcastmanager:1.0.0, androidx.lifecycle:lifecycle-common:2.0.0, androidx.arch.core:core-common:2.0.0, androidx.annotation:annotation:1.0.0, androidx.lifecycle:lifecycle-livedata:2.0.0, androidx.legacy:legacy-support-core-ui:1.0.0, androidx.lifecycle:lifecycle-viewmodel:2.0.0, androidx.lifecycle:lifecycle-livedata-core:2.0.0, androidx.legacy:legacy-support-v4:1.0.0, androidx.media:media:1.0.0, androidx.arch.core:core-runtime:2.0.0, androidx.legacy:legacy-support-core-utils:1.0.0, androidx.documentfile:documentfile:1.0.0, androidx.cursoradapter:cursoradapter:1.0.0, androidx.lifecycle:lifecycle-runtime:2.0.0, androidx.coordinatorlayout:coordinatorlayout:1.0.0, androidx.asynclayoutinflater:asynclayoutinflater:1.0.0, androidx.print:print:1.0.0

  • 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

BUILD FAILED in 2s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

Exception: The plugin flutter_bugly could not be built due to the issue above.

cying112115 avatar Feb 23 '21 09:02 cying112115

请问大家又遇到你此问题的吗?

android.useAndroidX=true android.enableJetifier=true

都已配置,仍然报错

cying112115 avatar Feb 23 '21 09:02 cying112115

问题依然存在吗?

crazecoder avatar Apr 10 '21 05:04 crazecoder

解决了吗?我这边打包突然冒出来这个问题,在这之前都没有..

50431040 avatar Oct 08 '21 01:10 50431040

@50431040 猜测是gradle版本问题,你可以试着降低或者升级项目gradle版本

crazecoder avatar Oct 08 '21 02:10 crazecoder