When I try to launch my application on my smartphone (Samsung Galaxy J5) after the build, my application instantly crash with the following error:
java.lang.RuntimeException: Unable to instantiate application android.permission.INTERNET: java.lang.ClassNotFoundException: Didn't find class "android.permission.INTERNET" on path: DexPathList[[zip file "/data/app/fr.hardis.VBNantes-1/base.apk"],nativeLibraryDirectories=[/data/app/fr.hardis.VBNantes-1/lib/arm, /data/app/fr.hardis.VBNantes-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
I am using Ionic 5.2 with Angular.
I however tried to add this to my my config.xml:
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
</edit-config>
Thank you for you help!
In Android Permissions are added to AndroidMenifest.xml file inside your android platform folder.
If you want your application to use internet go to your
YourProject\platforms\android\app\src\main\AndroidManifest.xml
File and add blow Code:
<uses-permission android:name="android.permission.INTERNET" />