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

把flutter项目“升级gradle到8.7”后,项目依赖 jverify: ^3.0.0 报错 #181

Open
leeyisoft opened this issue Aug 25, 2024 · 7 comments

Comments

@leeyisoft
Copy link

把flutter项目“升级gradle到8.7”后,项目依赖 jverify: ^3.0.0 报错

我把文件
/Users/leeyi/project/imboy.pub/imboyflutter/plugin/jverify/android/src/main/AndroidManifest.xml

修改为:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.jiguang.jverify">
    <uses-permission android:name="android.permission.SET_WALLPAPER"></uses>
</manifest>

可以解决 “JverifyPlugin.java:1903: 错误”

但是,我尝试了很多办法,还是没法解决 “Execution failed for task ':jverify:compileReleaseJavaWithJavac'.” 的问题


Font asset "fa-solid-900.ttf" was tree-shaken, reducing it from 419720 to 1600 bytes (99.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 1144 bytes (99.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "iconfont.ttf" was tree-shaken, reducing it from 3156 to 2204 bytes (30.2% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "fa-regular-400.ttf" was tree-shaken, reducing it from 68004 to 1200 bytes (98.2% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 18176 bytes (98.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
注: /Users/leeyi/.pub-cache/hosted/pub.flutter-io.cn/flutter_sound-9.11.3/android/src/main/java/xyz/canardoux/fluttersound/FlutterSound.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/leeyi/.pub-cache/git/image_crop-f5c1317e5deba45a616c7eb3dd6f915e0700946e/android/src/main/java/com/lykhonis/imagecrop/ImageCropPlugin.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
/Users/leeyi/.pub-cache/hosted/pub.flutter-io.cn/jverify-3.0.0/android/src/main/java/com/jiguang/jverify/JverifyPlugin.java:1903: 错误: 找不到符号
        Class drawable = R.drawable.class;
                          ^
  符号:   类 drawable
  位置: 类 R
注: /Users/leeyi/.pub-cache/hosted/pub.flutter-io.cn/jverify-3.0.0/android/src/main/java/com/jiguang/jverify/JverifyPlugin.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/leeyi/.pub-cache/hosted/pub.flutter-io.cn/jverify-3.0.0/android/src/main/java/com/jiguang/jverify/JverifyPlugin.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
1 个错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jverify:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

BUILD FAILED in 49s
Running Gradle task 'assembleRelease'... 
@stengfei
Copy link

我这边gradle 8.10,kotlin 1.9.21 升级好,Launching 的时候就自动退出了,连报错信息都没,升级之后其他组件还有报错提示都能根据提示解决,这个连报错都没,还有那个jpush_flutter: ^3.0.8也是同样的问题

@fqingyang
Copy link

好像flutter3.24以上都会报这个错,24已经发布了好几个版本,官方还没有跟进吗?

@HanQiGod
Copy link

同样的问题。有解决办法了???? @leeyisoft

@leeyisoft
Copy link
Author

gradle到8.7”后,项目依赖 jverify: ^3.0.0 报错

我是降级 gradle 了

@HanQiGod
Copy link

嗯 我也是降级gradle了

@virskor
Copy link

virskor commented Dec 13, 2024

3.27都出了降级flutter也没办法了,只能放弃极光了,更新确实渣

@Liup007
Copy link

Liup007 commented Dec 20, 2024

没人维护了么

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

6 participants