Android Question No access

Peekay

Active Member
Licensed User
Longtime User
Why would I all of a sudden get:


B4A Version: 11.20
Parsing code. (0.09s)
Java Version: 8
Building folders structure. Error
Access to the path 'C:\OneDrive\My Apps\IBMSss 2021 PKO\Objects\b4xlibs\Files' is denied.

I have ownership and full access to all my files and folders on Windows 10.

Thanks
PK
 

MikeSW17

Active Member
Licensed User
Others have had this problem with projects on 'cloud' drives. I don't recall seeing any solution found.
Move your project to a local drive and it will work.
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
Mike,

It is on my local drive, which is backed up on OneDrive. I have also moved it out to C:\ directly and I get the same error.
I am quite sure it is a Windows problem. No matter how I set the security setting, it keeps my account, users and everyone on Read&Execute.
It appeared suddenly, probably because of some backup program I installed, whose misguided coder thought it allowable to put his fingers into things he is not up to.

PK
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It is on my local drive, which is backed up on OneDrive.
And Drive has full access to this path too as it is syncing.

Copy the folder out of a shared path. It will work. You should only store backups (zip) on Drive.
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
Just adding ... I have all my projects / files stored in a similar fashion , (albeit with Dropbox).
I have never had an issue , but more importantly , I Manually enable / disable syncing when Not using B4X.
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
I have stopped synching, uninstall OneDrive, moved the folder, changed security ... nothing works.
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
There is no file to look for in this folder. One tip on the internet says that it will give an error if you are searching for a folder and not a file.
How would I know which file it is searching for?
PK
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
The error stays the same, but the path changes to the new path when I move the folder.
PK
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Try to create a new project, then move them into the project
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
I do not see anything strange in my manifets file:

'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: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="26"/>
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:smallScreens="false"
android:anyDensity="true"/>)
AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="true" />)
AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />)
AddManifestText(<uses-feature android:name="android.hardware.camera.flash" android:required="true" />)
AddPermission("android.permission.INTERNET")
AddPermission("android.permission.ACCESS_FINE_LOCATION")
AddPermission("android.permission.READ_PHONE_STATE")
AddPermission("android.permission.VIBRATE")
AddPermission("android.permission.CAMERA")
AddPermission("android.permission.FLASHLIGHT")
AddPermission("android.permission.READ_CONTACTS")
AddPermission("android.permission.READ_PROFILE")
AddPermission("android.hardware.camera")
AddPermission("android.permission.ACCESS_NETWORK_STATE")
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
AddPermission("android.permission.ACCESS_WIFI_STATE")
AddPermission("com.google.android.providers.gsf.permission.READ_GSERVICES")
AddPermission("android.permission.BLUETOOTH")
AddPermission("android.permission.GET_ACCOUNTS")
AddPermission("android.permission.SEND_SMS")
AddPermission("android.permission.READ_SMS")
AddPermission("android.permission.WRITE_SMS")
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission("android.permission.WAKE_LOCK")
AddPermission("android.permission.DEVICE_POWER")
AddPermission("android.permission.GET_ACCOUNTS")
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)

AddManifestText(<meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="barcode" />)

'End of default text
 
Upvote 0

teddybear

Well-Known Member
Licensed User
The error stays the same, but the path changes to the new path when I move the folder.
PK
Did you use copy instead of move?
 
Upvote 0

Peekay

Active Member
Licensed User
Longtime User
Thank you for everyone who tried to help. I appreciate.
Enrique solved the puzzle for me by just deleting the folder.

PK
 
Upvote 0
Top