jpush / jverify-flutter-plugin

JPush's officially supported Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
117 stars 64 forks source link

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

Open leeyisoft opened 3 months ago

leeyisoft commented 3 months ago

把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 commented 2 months ago

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

fqingyang commented 1 month ago

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

HanQiGod commented 1 week ago

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

leeyisoft commented 1 week ago

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

我是降级 gradle 了

HanQiGod commented 1 week ago

嗯 我也是降级gradle了