Nope
Hello
Votes
0
Replies
24
Participants
Unknown
Messages
25
Your android app
Rank 1: Thread
😄
You have a file called AndroidManifest.xml
Rank 1: Thread
I really cant find it 😄
Rank 1: Thread
in node modules ?
Rank 1: Thread
I found it there
So inside the file you add the 2 flags:
<manifest xlmns:android...> ... <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <application ...</manifest>```You're developing android with Kotlin or Java?
Rank 1: Thread
Java
Rank 1: Thread
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Rank 1: Thread
this is the correct file?
Is it called AndroidManifest.xml?
Seems yes, that's it
Rank 1: Thread
yes
That's correct. Add the other tag bellow
Specifically:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />Rank 1: Thread
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCWSS_NETWORK_STATE" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Rank 1: Thread
i added them within the application
Rank 1: Thread
right?
Nope, should be outside
Rank 1: Thread
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
That's correct
Rank 1: Thread
meh, im still getting the error. I have to go now unfortunately but thanks for your time i will try some other way
You will need to sync gradle and reinstall the app