OpenFlutter / rammus

Flutter Plugin for AliCloud Push.阿里云推送插件
Apache License 2.0
77 stars 40 forks source link

Android build apk R8压缩导致ClassNotFoundException #9

Closed j-deng closed 4 years ago

j-deng commented 4 years ago

Version Flutter 1.14.6 • channel beta

03-24 16:53:33.019 10134 10134 E AndroidRuntime: Process: com.example.gchon, PID: 10134
03-24 16:53:33.019 10134 10134 E AndroidRuntime:        at com.example.gchon.GcApplication.onCreate(Unknown Source:7)
03-24 16:53:33.019 10134 10134 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.alibaba.sdk.android.push.securitybox.alipush.AliPushSecurityBoxServiceFactoryProvider" on path: DexPathList[[zip file "/data/app/com.example.gchon-6BophAjhZj0NDvW8mYW9Ag==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.gchon-6BophAjhZj0NDvW8mYW9Ag==/lib/arm64, /data/app/com.example.gchon-6BophAjhZj0NDvW8mYW9Ag==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]

不知道是不是因为我漏掉了什么。 https://github.com/flutter/flutter/issues/48015

flutter run --release 可以运行 flutter build apk 闪退 flutter build apk --no-shrink 可以运行

JarvanMo commented 4 years ago

可以试试新版本。

j-deng commented 4 years ago

@JarvanMo 1.0.1 版本中已修复