当前位置:网站首页>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
}
}
}
}
边栏推荐
- [leetcode每日一题2021/4/29]403. 青蛙过河
- [paper after dinner] deep mining external perfect data for chestx ray disease screening
- 鹏哥C语言第四课(3)
- [leetcode daily question 2021/4/23]368. Maximum divisible subset
- Redis特殊数据类型使用场景
- RT-Thread 学习笔记(五)---编辑、下载、调试程序
- 扫雷pro版2021-08-19
- Write to esp8266 burning brush firmware
- 剑指Offer(二十):包含min函数的栈
- 解决:无法加载文件 C:\Users\user\AppData\Roaming\npm\npx.ps1,因为在此系统上禁止运行脚本 。
猜你喜欢
![[machine learning notes] [face recognition] deeplearning ai course4 4th week programming](/img/7e/9c0e88097b90c0c24ebf86f090805b.png)
[machine learning notes] [face recognition] deeplearning ai course4 4th week programming

RT-Thread 学习笔记(三)---用SCons 构建编译环境

粽子大战 —— 猜猜谁能赢

IAR sprintf 浮点 在UCOS 总格式化成0.0的问题

Issue 7: how do you choose between curling up and lying flat
![[leetcode daily question 2021/4/23]368. Maximum divisible subset](/img/0b/32ca862963c842a93f79eaac94fb98.png)
[leetcode daily question 2021/4/23]368. Maximum divisible subset

多目标优化系列1---NSGA2的非支配排序函数的讲解

RT-Thread 学习笔记(七)---开启基于SPI Flash的elmfat文件系统(中)

Tradingview tutorial
![[leetcode每日一题2021/4/29]403. 青蛙过河](/img/fb/612777c77df5a611506e72f4f4c3c8.png)
[leetcode每日一题2021/4/29]403. 青蛙过河
随机推荐
L2-005 set similarity (intersection of vector and set)
RT-Thread 学习笔记(七)---开启基于SPI Flash的elmfat文件系统(中)
Tradingview tutorial
剑指Offer(二十一):栈的压入、弹出序列
C language calculation date interval days
在神州IV开发板上成功移植STemWin V5.22
工厂模式详解
2021-08-13和鹏哥学C语言-数组
12 复制对象时勿忘其每一个成分
[leetcode daily question 2021/2/18] [detailed explanation] minimum number of turns of 995. K continuous bits
[machine learning notes] [style transfer] deeplearning ai course4 4th week programming(tensorflow2)
A semicolon is missing
Uninstall Meizu app store
Redis docker instance and data structure
Redis Docker实例与数据结构
13 以对象管理资源
第4期:大学生提前职业技能准备之一
从蚂蚁的觅食过程看团队研发(转载)
Introduction to Phoenix (Level 1: Phoenix installation, level 2: Phoenix basic grammar)
RT-Thread 学习笔记(三)---用SCons 构建编译环境