THIS FIX APPEARS TO ALLOW THE COMPILE TO FINISH, BUT I STILL CAN’T GET ANYTHING TO RUN ON MY ANDROID 2.3.4 - even a short 3 ilne Hello World project.
Hi Rob,
Okay, based upon your suggestion, I have removed the build.settings file and the config.lua file. Now, all I have is a main.lua file with the following 3 lines of code.
print( “Hello World!” )
local myTextObject = display.newText( “Hello World!”, 50, 50, “Arial”, 60 )
myTextObject.anchorX=0
This works perfectly on my HTC One X - Android 4.1.1, but not even the PRINT(“Hello World!”) works from my ATT LGP505 Android 2.3.4 device. I am using ADB to see console messages just fine on the HTC One X. Here are the results on the Android 4.1.1 from using “adb logcat Corona:v *:s”
V/Corona ( 6543): > Class.forName: network.LuaLoader
V/Corona ( 6543): < Class.forName: network.LuaLoader
V/Corona ( 6543): Loading via reflection: network.LuaLoader
I/Corona ( 6543): Platform: HTC One X / ARM Neon / 4.1.1 / Adreno ™ 225 / OpenGL ES 2.0 V@4.1 AU@ (CL@2814726)
I/Corona ( 6543): Hello World!
I am using the ADB on the Android 2.3.4 device to do the following:
adb shell rm /sdcard/tmp/test.apk --this removes the previous apk
adb install -s e:\CoronaLabs\test.apk --this installs the apk (appears to work fine - I can see the Corona logo on App named “test”
adb logcat Corona:v *:s --nothing ever comes to the log file from the device
ADB appears to work just fine on my Android 2.3.4, its just that the Hello World project doesn’t work.
Here are more details:
On the Android 2.3.4 ATT LGP505, I have an SD card in it and it seems to work great - good network connectivity, pulls down my gmail fine. I have Setttings -> Applications -> Unknown Sources checked and Settings -> Applications -> Development, I have USB debugging checked. As I said, it appears to install the APK just fine - can see the Corona logo on App named “test”
Another point worth mentioning is that I am doing the Corona build from Lua Glider 2.0, but that shouldn’t matter right, because the actual APK is put together by the Corona Simulator -> File -> Build, right?