Android Question sdk files and RunTimePermissions

jamesnz

Active Member
Licensed User
When I compile a project with gps and use the library runtimepermissions (ver 1.10) I get an error
B4A Version: 9.00
Parsing code. (0.00s)
Building folders structure. (0.08s)
Compiling code. (0.11s)
Compiling layouts code. (0.01s)
Organizing libraries. Error
Access to the path 'c:\program files (x86)\android\android-sdk\tools\..\extras\android\m2repository\com\android\support\support-v4\25.3.1\unpacked-support-v4-25.3.1' is denied.

when I look further into Unpacked support, the exact filename does not exist ( see image).
I tried deleting android support repository v47 and reinstalling it, no difference.

manifest is
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
'End of default text.
Now it seems I cant wind the target SDK back either
B4X:
Installing file to device.    Error
adb: failed to install vtmdemo_RAPID_DEBUG.apk: Failure [-26: Package b4a.example new target SDK 14 doesn't support runtime permissions but the old target SDK 26 does.]
View attachment 82082
 

DonManfred

Expert
Licensed User
Access to the path 'c:\program files (x86)\android\android-sdk\tools\..\extras\android\m2repository\com\android\support\support-v4\25.3.1\unpacked-support-v4-25.3.1' is denied.
Program files is a restricted folder. Put the android sdk in C:\Android like you see in the Installationvideo

https://www.b4x.com/b4a.html#installation
 
Top