1,当创建一个空的Activity 项目的时候,Launch Option 设置为 Specified Activity 的时候,运行报错Error running 'app': The activity must be exported or contain an intent-filt
解决办法:AndroidManifest.xml文件中你想设置为默认activity的activity标签下添加: activity android:name=".MainActivity"
intent-filter
action android:name="android
执行 "Generate Signed Bundle/APK" 命令:
Android App Bundle (不推荐)
Android App Bundle是一种改进的应用程序打包方式,能大幅度减少应用体积。简而言之,可以理解Google 官方的动态发布方案。
缺点
仅限于通过 Google Play 发布的应用,(Google进一步巩固自身生态)
需要加入到 Google 的 beta program enroll your app in app signing by Google Play in the Play Console
最低支持版本
调用相册:
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
意思就是说,你需要在 info.plist 文件添加一个 NSPhotoLibr
1. 使用 “cordova build android” 打包的时候报错:Error: Could not find gradle wrapper within Android SDK.
$ cordova build android
ANDROID_HOME=/Users/ice/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
Error: Could not find gradle wrapper within A