当前位置:网站首页>Flutter jni混淆 引入.so文件release包闪退
Flutter jni混淆 引入.so文件release包闪退
2022-07-26 10:39:00 【Flutter萌新学院】
Flutter 引入Android jni 插件 ,debug没事,release包闪退 加入防止混淆也不管用
-dontwarn io.flutter.**
-keep class io.flutter.app.** {
*; }
-keep class io.flutter.plugin.** {
*; }
-keep class io.flutter.util.** {
*; }
-keep class io.flutter.view.** {
*; }
-keep class io.flutter.** {
*; }
-keep class io.flutter.plugins.** {
*; }
解决办法 不混淆 不压缩
buildTypes {
release {
//关闭混淆
minifyEnabled false //删除无用代码
shrinkResources false //删除无用资源
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86_64", "x86" // 保留架构的CPU
}
}
}
}
边栏推荐
- [machine learning notes] [face recognition] deeplearning ai course4 4th week programming
- json_ object_ put: Assertion `jso->_ ref_ count > 0‘ failed. Aborted (core dumped)
- Flutter TextField怎样去除下划线及有焦点时颜色
- router.push(),router.repalce(),router.go()使用
- Introduction to Phoenix (Level 1: Phoenix installation, level 2: Phoenix basic grammar)
- 剑指Offer(七):斐波那契数列
- 【机器学习小记】【人脸识别】deeplearning.ai course4 4th week programming
- .net operation redis list list
- STM32 Alibaba cloud mqtt esp8266 at command
- putty的使用教程
猜你喜欢
随机推荐
鹏哥C语言第六节课
Mlx90640 infrared thermal imager temperature sensor module development notes (VI) pseudo color coding of infrared images
[leetcode daily question 2021/8/30]528. Choose randomly by weight [medium]
MySQL速学-2021-09-01
Anaconda is used on vscode (the environment has been configured)
Flutter TextField怎样去除下划线及有焦点时颜色
【dectectron2】跟着官方demo一起做
剑指Offer(二十):包含min函数的栈
RT-Thread 学习笔记(五)---编辑、下载、调试程序
Asynctask < T> decoration and await are not used in synchronous methods to obtain asynchronous return values (asynchronous methods are called in synchronous methods)
.net operation redis set unordered collection
Common classes (understand)
SuperMap IClient for Leaflet 加载高斯克吕格投影三度分带CGCS2000大地坐标系WMTS服务
STM32 Alibaba cloud mqtt esp8266 at command
C语言鹏哥20210812C语言函数
反射机制简述
[leetcode daily question 2021/8/31] 1109. Flight reservation statistics [medium] differential array
oracle 启动不了 tnslistener服务启动不了
Some web APIs you don't know
MD5 encryption