Android Question Generating R file - Error

MrHugs

New Member
Hi,

I am very new to Basic4Android, and I am already very frustrated. I am following the tutorial to make the simple "Hello World" app, setting up the programs as recommended, then writing the code, but every time I try to compile and run, I get the following message in the 'Compile & rapid debug' window:

Parsing code. 0.01
Compiling code. 0.05
Compiling layouts code. 0.00
Generating R file. Error

This doesn't matter whether I'm trying to use the emulator or connecting to my tablet, the same message appears and I am unable to load my app.

As recommended in other threads, I have disconnected and reconnected the emulator and bridge connections in various orders, with no effect.

The SDK is fully up to date.

The emulator correctly boots up to the home screen, and when I type 'adb devices' into a command prompt, I get the return 'emulator-5554 device'.

Basic4android also seems to see my tablet, as the B4A log lists the following:

LogCat connected to: B4A-Bridge: asus Transformer TF101-
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:anywheresoftware.b4a.designer
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **

This is making me very frustrated, falling at the first hurdle, and any help would be very much appreciated.
 

MrHugs

New Member
Yes, this is the full error message.

With some more experimentation, I have found that this error only occurs in local compilation mode. Remote compilation works fine (though this is not a long-term solution).
 
Upvote 0

MrHugs

New Member
I've now uninstalled, restarted computer, fresh download of SDK, installed. Running my 'Hello World' app still causes the exact same issue with the same error message.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…