Android Question a strange thing happened - please help

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
hi

i have a project that i work on for long time
i got a surprise this morning and got an error while compiling


B4A Version: 13.00
Parsing code. (0.02s)
Java Version: 19
Building folders structure. Error

Access to the path 'F:\Android\NFC_CardReader\Objects\shell\bin\classes\arkom\nfc' is denied.

nothing changed
30 seconds earlier all was perfect
i even tried to close and open the project again - no good...
i also tried to rename the mail top folder, copy the entire contend to another folder - nothing helped

any ideas?

thanks
 
Last edited:
Solution
problem seems to be solved !
both problems...

1st - access:
i moved the entire tree to local disk out of one drive and set the entire tree to read write
access issue solved

2nd - file not found
spotted the exact file and required location
b4a deletes it every step so i marked it read only

all now works smoothly

thank you all for your support and good will

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
You tried clean up the project 100 times in 30 seconds? Not included other every odd things? You're fast.
i'm not fast
i'm not even drunk :) (it's early morning)
i did try cleaning the project several times
this all started earlier and before posting tried all possible options as described

cleaning the project produces the same error
this one is from the copy on desktop (i said i tried every odd idea i had)

Screenshot_1.png
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
i'm not fast
i'm not even drunk :) (it's early morning)
i did try cleaning the project several times
this all started earlier and before posting tried all possible options as described
Yes, you don't need clean up 100 times. Max 10 times is more than enough. 😏

Next thing is restart.

If still failed, check your autobackup if you enabled it.

If still failed, list out what odd things you have tried.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Yes, you don't need clean up 100 times. Max 10 times is more than enough. 😏

Next thing is restart.

If still failed, check your autobackup if you enabled it.

If still failed, list out what odd things you have tried.
thanks

restarted the pc several tines
autobackup is off (i don't use it any how)

so i tried copy the entire folder to another
rename the folder
moved to folder to desktop and try there
create a new folder and copy the content to it
i even cursed very loudly (in 3 languages)
what else should i try?

edit:
now i checked and saw all folders are read only - changed the to read write - did not help

one more thing - i opened the b4a editor
tried to clean project and got the access error
left it open and again marked all folders rean write as they got back to read only
tried to clean again - failed again
b4a gods hate me?
 
Last edited:
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Looks from the path there might be OneDrive involvement. Perhaps its locked the files. Can you try it on a normal folder in C:?
thanks Agraham

as said - tried that many times

found a strange bypass (but now i have a new issue)

i run a cmd command attrib -r /s /d *.* to mark all as read write
that worked and i did not get the access error

now i have another even stranger issue -
the error i get is:

B4A Version: 13.00
Parsing code. (0.01s)
Java Version: 19
Building folders structure. (0.01s)
Running custom action. (0.17s)
Compiling code. (0.04s)
Compiling layouts code. (0.02s)
Organizing libraries. (0.03s)
(AndroidX SDK)
Compiling resources (0.04s)
Linking resources Error
AndroidManifest.xml:41: error: resource xml/nfc_tech_filter (aka arkom.nfc:xml/nfc_tech_filter) not found.
error: failed processing manifest.

as per onedrive - other projects are all fine - only this one is crazy...
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
I'm using @Johan Schoeman excellent NFC library (Credit Cards reading)
i use it for long time and only now the project just went crazy

you cannot use my patented cursing !!!

i can try delete the object folder but not sure it is relevant - but i will just to make sure

zipping and unzipping is my default way to backup so i did that numerous times
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
OK no cursing but I can have some odd tries if you want suggestions.

I may also tried switch to other version of JDK and then back to the current version to see any difference.
ok you can curse as you like since you're a nice guy...

i don't want to touch anything in the environment as all other projects are fine
something went crazy only with this one
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
ok you can curse as you like since you're a nice guy...

i don't want to touch anything in the environment as all other projects are fine
something went crazy only with this one
I think it is no harm to try. Since you need to resume your work.
Just temporary switch to different JDK, clean the project and compile. I hope it will clear the "cache" and unlock the files. If failed or success then just switch it back. It won't affect other projects. We want to find something that lock the files, trick it and kill the culprit.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
I think it is no harm to try. Since you need to resume your work.
Just temporary switch to different JDK, clean the project and compile. I hope it will clear the "cache" and unlock the files. If failed or success then just switch it back. It won't affect other projects. We want to find something that lock the files, trick it and kill the culprit.
file / directory lock is resolved as i moved it all out of one drive and changed all to read write
now i have another error that i described and uploaded here
it doesn't find a file
how do i handle it?
i have the file
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
problem seems to be solved !
both problems...

1st - access:
i moved the entire tree to local disk out of one drive and set the entire tree to read write
access issue solved

2nd - file not found
spotted the exact file and required location
b4a deletes it every step so i marked it read only

all now works smoothly

thank you all for your support and good will
 
Upvote 0
Solution
Top