Are you encountering Error 908 while using Kodular, specifically related to the WRITE_EXTERNAL_STORAGE permission? This issue, often observed on devices running Android 11, can be frustrating, but fear not, as we'll guide you through the steps to fix it.
1. Manifest Permissions: Ensure that your AndroidManifest.xml file includes the necessary permissions. Specifically, make sure you have the following line:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Note that on Android 11 and later, WRITE_EXTERNAL_STORAGE is managed implicitly as part of the READ permission.
2. Additional Permissions: Check for any unnecessary permissions, such as:
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
Removing this permission, if present, can help resolve the issue.
3. Pedroza Thumbnail Extension: If you're using the Pedroza Thumbnail extension, ensure it correctly adds WRITE_EXTERNAL_STORAGE to the Manifest. Permissions must be explicitly declared for the app to request them. As a workaround, try adding the File component (even if not used) to your app. Rebuild the APK and test if the error persists.
4. DefaultFileScope: If encountering issues with affected components, set the DefaultFileScope to Legacy to avoid Error 908 on AI2. For other scenarios, like storing/accessing data in the ASD, consider using the File component and enabling both permissions in the Designer.
While these workarounds may help, it's important to note that the underlying issue is likely a bug that requires attention from the Kodular Community. Stay updated on any official fixes or updates released by Kodular.
By following these steps, you should be able to resolve Error 908 and continue your Kodular project smoothly. Good luck!
Comments