1.ClassNotFoundException——minifyEnabled false ——关闭混淆
2.离线打包原生插件无效——dcloud_uniplugins.json文件,包名必须和插件位置一致
dcloud_uniplugins.json
{
"nativePlugins": [
{
"plugins": [
{
"type": "module",
"name": "test-module",
"class": "com.example.test_module.UniTestModule"
}
]
}
]
}
3.原生开启,UNI日志,修改,dcloud_control.xml
<hbuilder debug="true" syncDebug="true"> --改为true,则为打印日志
<apps>
<app appid="__UNI__2DB1D28" appver=""/>
</apps>
</hbuilder>
4.在使用三方SDK私有库的情况下,云打包aar文件,找不到类
因为云打包不支持,只能本地打包,或者把私有库下载下载,打包进lib