[英]Gluon Charm (invalid license key) - Example app run only in the desktop mode
In the desktop it runs normally with the license key. 在桌面上,它可以使用许可证密钥正常运行。 After run ./gradlew androidInstall when I open the app (in my LG G4) it crashes!!
运行./gradlew androidInstall之后,当我打开应用程序(在我的LG G4中)时,它崩溃了!
I await for your replay, 我期待着您的重播,
Eder Maciel Martelo 埃德·麦基尔·马丁洛(Eder Maciel Martelo)
Based on your stacktrace: 根据您的堆栈跟踪:
Not granting permission android.permission.MANAGE_DOCUMENTS
不授予权限android.permission.MANAGE_DOCUMENTS
reveals that you are not assigning the required permissions on your AndroidManifest.xml
file. 表明您没有在
AndroidManifest.xml
文件上分配必需的权限。
By default, the plugin creates a manifest with this permissions: 默认情况下,该插件创建具有以下权限的清单:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
In case you require additional permissions or you want to remove them if they are not necessary, you just need to edit the file /src/android/AndroidManifest.xml
, and modify it accordingly: 如果您需要其他权限,或者在不需要这些权限时希望将其删除,则只需编辑
/src/android/AndroidManifest.xml
文件,并相应地进行修改:
...
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS"/>
Finally, save, and deploy again. 最后,保存并再次部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.