could not build R.Java

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulrichards999
Posts: 19
Joined: Thu Sep 04, 2014 3:32 pm

could not build R.Java

Post by paulrichards999 » Tue Jan 09, 2018 12:22 pm

LC 9 DP11 running on Windows 10

Created a new stack and added just the new Map Widget. Trying to save as standalone but getting error:

There was an error while saving the stanadalone application
could not build R.java
Error: resource directory
c:\users\paul\appdata\local\temp\tmp6\res-build\res\
does not exist.

any ideas?

Thanks

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: could not build R.Java

Post by sphere » Wed Jan 10, 2018 7:21 pm

i've no idea.
but to start:
did you install the JAVA jdk?
Did you install Android studio or just the command line utilities? either of these is needed, and then did you download the Android sdk files?
Did you point LC in the Moblie settings to your sdk installation?

also add the path of the android sdk and java jdk to your environment settings

paulrichards999
Posts: 19
Joined: Thu Sep 04, 2014 3:32 pm

Re: could not build R.Java

Post by paulrichards999 » Fri Jan 12, 2018 3:01 pm

Java SDK installed and everything is generally fine ( I deploy to Android most days - so this part works)

The issue only happens when the Map Widget is added. I can deploy OK from Mac, but just not Windows

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: could not build R.Java

Post by sphere » Fri Jan 12, 2018 8:37 pm

ok if it normally works fine deploying on windows to Android
then i suggest to report a possible bug: http://quality.livecode.com/

paulrichards999
Posts: 19
Joined: Thu Sep 04, 2014 3:32 pm

Re: could not build R.Java

Post by paulrichards999 » Tue Jan 16, 2018 2:46 pm

So having done a little digging around, traced the error message to revSaveAsAndroidStandalone.livecodescript.

Just after generateResourceClasses, tBuildFolder, tManifestFile, pSettings, rResourceClasses - I place a "put tBuildFolder, tManifestFile, pSettings, rResourceClasses " (line 754) in order to gauge what might be missing... having this line in place actually builds the standalone ?! So small hurdle jumped.

But when the app is pushed to my Samsung S8 with just the Map Widget on 1 card, it just crashes straightaway (When pushed from Mac or Windows) so it does look like 2 reports needed.

Post Reply

Return to “Android Deployment”