Crash when add Android location permission

Hi, my app crashes when add Android permission for location, using CLI 9

<edit-config file="*AndroidManifest.xml" mode="merge" target="/manifest/application">
        <application android:usesCleartextTraffic="true" />
         <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    </edit-config>

Same error with only ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION

java.lang.RuntimeException: Unable to instantiate application android.permission.ACCESS_COARSE_LOCATION: java.lang.ClassNotFoundException: Didn’t find class “android.permission.ACCESS_COARSE_LOCATION” on path: DexPathList[[zip file “/data/app/com.isover.clubclimaver-g-NWqK3S-gViYDpfYQ3k3A==/base.apk”],nativeLibraryDirectories=[/data/app/com.isover.clubclimaver-g-NWqK3S-gViYDpfYQ3k3A==/lib/arm64, /system/lib64, /system/product/lib64]]

at android.app.LoadedApk.makeApplication(LoadedApk.java:1230)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6551)

at android.app.ActivityThread.access$1400(ActivityThread.java:224)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887)

at android.os.Handler.dispatchMessage(Handler.java:107)

at android.os.Looper.loop(Looper.java:224)

at android.app.ActivityThread.main(ActivityThread.java:7560)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Caused by: java.lang.ClassNotFoundException: Didn’t find class “android.permission.ACCESS_COARSE_LOCATION” on path: DexPathList[[zip file “/data/app/com.isover.clubclimaver-g-NWqK3S-gViYDpfYQ3k3A==/base.apk”],nativeLibraryDirectories=[/data/app/com.isover.clubclimaver-g-NWqK3S-gViYDpfYQ3k3A==/lib/arm64, /system/lib64, /system/product/lib64]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:230)

at java.lang.ClassLoader.loadClass(ClassLoader.java:379)

at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)

at android.app.Instrumentation.newApplication(Instrumentation.java:1156)

at android.app.LoadedApk.makeApplication(LoadedApk.java:1222)

This is very unlikely to be a VoltBuilder issue. More likely, it has something to do with updated libraries or plugins.

Is there a reason you’re still using CLI 9? The current version is 10.

Ok this is my xml config…i have define the CLI as i’ve done on phonegap build:

<preference name="phonegap-version" value="cli-10.0.0" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="29" />
<plugin name="cordova-plugin-geolocation" spec="~4.0.2" />

and it crash again with the same log error

if i comment the permission line the app works properly