Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing the following permissions in AndroidManifest.xml - WRITE_EXTERNAL_STORAGE #172

Open
ludonoel1 opened this issue Oct 20, 2022 · 3 comments
Assignees

Comments

@ludonoel1
Copy link

Hello,
I have a project with ionic capacitor, so I have decided to install instabug via cordova getting started step.
ionic: 6
capacitor: 4

However, I just needed to install instabug-cordova to break my app.
I am using capacitor camera which worked before instabug install

androidManifest:
<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" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
error:
2022-10-20 16:30:48.343 6720-6720/com.younzee.app E/Capacitor/Console: File: http://localhost/vendor.js - Line 101123 - Msg: ERROR Error: Uncaught (in promise): Error: Missing the following permissions in AndroidManifest.xml:
android.permission.WRITE_EXTERNAL_STORAGE

Error: Missing the following permissions in AndroidManifest.xml:
android.permission.WRITE_EXTERNAL_STORAGE

    at returnResult (http://localhost/:421:32)
    at Object.win.androidBridge.onmessage (http://localhost/:396:21)

2022-10-20 16:30:48.351 6720-6720/com.younzee.app E/IBG-Core: PluginsManager.isForegroundBusy() was called before PluginsManager.init() was called

@DavidMina96
Copy link
Contributor

Hi @ludonoel1,

Thank you for reporting this issue, and apologies for any inconvenience this may be causing.

It seems you are facing a similar issue to the one reported here, so I suggest you try modifying your AndroidManifest.xml file accordingly.

Looking forward to hearing your feedback if that resolved the issue for you.

@ludonoel1
Copy link
Author

Hey @DavidMina96 I'm sorry but I get the same error as the last message in your post.

Upon adding that line. Remove Android max version. I'm not able to generate release build. Getting this error. "The prefix tools for attribute tools:remove associated with an element type uses-permission is not bound". Can someone help. Anyone faced this issue. ?

@DavidMina96
Copy link
Contributor

@ludonoel1 Please add the tools namespace to your manifest header so it looks like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yourpackage"
    xmlns:tools="http://schemas.android.com/tools">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants