Android Question Compile failure - Generating R file - access denied?

john1in2

Member
Licensed User
Hello, I have 3 computers, two on Win 7 and a laptop with Win 10.

The Win 7 pcs work fine, but when I try to compile my app on the road the win10 laptop says-

B4A Version: 7.80
Parsing code. (0.45s)
Compiling code. (0.80s)
Compiling layouts code. (0.14s)
Organizing libraries. (5.22s)
Generating R file. Error
Access is denied

Access is denied usually when you don't run as admin, but I am doing that. I did a search and saw it might be the java version is outdated, but my java libraries in c/programs/java are both 1.80_161 and 162 which are the latest. So what is the problem do you think?
 

john1in2

Member
Licensed User
OK, this is resolved.
As I thought its an access control problem.

Even though I set B4A to run as admin, when you are simply clicking on your program name ("myprogram.b4a") to load up your program in B4A, Windows 10 does not load the admin setting and you are no longer running as admin. The program name is associated with B4A but unassociated with the admin setting you have set for B4A.

This happens even through my computer has only 1 account with 1 user who is an admin user.

Instead you should run B4A independently (as admin) and then navigate to your program and open it rather than relying on the association of the program file with B4A. I suppose you could manually set your program "myprogram.b4a" to run as admin but you would have to do it separately for each variation you save (I save a couple a day so it would be a pain).

Just fyi, here is a link to set your permissions as admin for Win10.
https://www.techadvisor.co.uk/how-t...grams-as-administrator-in-windows-10-3632744/
https://www.techadvisor.co.uk/how-t...grams-as-administrator-in-windows-10-3632744/
-sorry to trouble everyone about this.
 
Upvote 0
Top