简体   繁体   中英

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!!

I await for your replay,

Eder Maciel Martelo

Based on your stacktrace:

Not granting permission android.permission.MANAGE_DOCUMENTS

reveals that you are not assigning the required permissions on your AndroidManifest.xml file.

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:

    ...
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.MANAGE_DOCUMENTS"/>

Finally, save, and deploy again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM