导航路径:https://nativesupport.dcloud.net.cn/AppDocs/usesdk/android
把dcloud_control.xml文件里面的id属性值__UNI__B改成manifest.json里面的id值相同
在这个链接里面往下翻可以看到说明https://nativesupport.dcloud.net.cn/AppDocs/usesdk/android
代码块贴出来了
<!--provider节点必须添加-->
<provider
android:name="io.dcloud.common.util.DCloud_FileProvider"
android:authorities="${apk.applicationId}.dc.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/dcloud_file_provider" />
</provider>
打开开发者中心,选择对应的项目
开发者中心https://dev.dcloud.net.cn/app/index?type=0
keytool -list -v -keystore key.jks
Failed to apply plugin ‘com.android.internal.application’.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing org.gradle.java.home in gradle.properties.
是因为本地系统安装的是Java 1.8,去下载Java 11安装就好了
java -version 查看java版本
官方本地打包app说明:
https://nativesupport.dcloud.net.cn/AppDocs/usesdk/android
官方配置Appkey说明:
https://nativesupport.dcloud.net.cn/AppDocs/usesdk/appkey
参考文章:
https://blog.csdn.net/qq_41816742/article/details/120997498?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2aggregatepagefirst_rank_ecpm_v1~rank_v31_ecpm-3-120997498.pc_agg_new_rank&utm_term=appkey+is+not+configured+or+configured+incorrectly&spm=1000.2123.3001.4430
uni-app运行环境版本和编译器版本不一致的问题:
https://ask.dcloud.net.cn/article/35627