Unable to build app for testing:
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Unable to build app for testing:
Greetings:
In attempting to build an app to transfer it to an Android device, I am seeing the following error:
"Unable to build app for testing: could not compile application class"
It pops up immediately after the "Building Classes" message.
I can see that other people have experienced this problem, but I haven't found a solution that works for me.
I am using LC6.6(dp1) on a Mac with Mavericks. I've also tried LC6.5
I have set Minimum Android Version to 2.2. - Froyo, but have tried others.
I have a very simple app that just displays a button, and that transfers fine.
But a slightly more complex app, that is still in development, and doesn't do anything fancy (no GPS, camera, SQLite, revZip, etc.) will not build.
It works fine on a variety of AVDs.
I do not yet have a development key so I have set "Sign for development only".
I'm stuck. Anyone have any ideas? TIA...
--paul
In attempting to build an app to transfer it to an Android device, I am seeing the following error:
"Unable to build app for testing: could not compile application class"
It pops up immediately after the "Building Classes" message.
I can see that other people have experienced this problem, but I haven't found a solution that works for me.
I am using LC6.6(dp1) on a Mac with Mavericks. I've also tried LC6.5
I have set Minimum Android Version to 2.2. - Froyo, but have tried others.
I have a very simple app that just displays a button, and that transfers fine.
But a slightly more complex app, that is still in development, and doesn't do anything fancy (no GPS, camera, SQLite, revZip, etc.) will not build.
It works fine on a variety of AVDs.
I do not yet have a development key so I have set "Sign for development only".
I'm stuck. Anyone have any ideas? TIA...
--paul
Re: Unable to build app for testing:
Well, this is strange. I'm now getting the same error if I try to build for an Android Virtual Device.
So, it would seem that attempting to build for a real device has changed something somewhere.
--paul
So, it would seem that attempting to build for a real device has changed something somewhere.
--paul
Re: Unable to build app for testing:
Hi Paul,
Just a thought...
Check all of your code for anything that might be iOS only. Like;
mobileControlSet tControl, "fontName", true
Simon
Just a thought...
Check all of your code for anything that might be iOS only. Like;
mobileControlSet tControl, "fontName", true
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Unable to build app for testing:
Good thought Simon, but one of the apps I'm trying to build definitely does not have any "mobile" or "iphone" commands.Simon wrote:Hi Paul,
Just a thought...
Check all of your code for anything that might be iOS only. Like;
mobileControlSet tControl, "fontName", true
Simon
And, the two apps I'm trying to build both work on the AVDs.
But... am I not right in thinking the "mobile" commands work on both iOS and Android? It's only iOS-specific if it's an "iphone" command.
Also, isn't it okay to code something like...
Code: Select all
if the platform is "iphone" then
iphoneUseDeviceResolution false
end if
Tkx,
--paul
Re: Unable to build app for testing:
Hi Paul,
Nope, mobile... isn't all for both devices. Check out the example I gave when using native text, there are lots of "(iOS only)".
Yep, if the platform is "iphone" should be working.
Good to know that just the single button app works. I think that means you'll have to start stripping code out till it works again.
Simon
Nope, mobile... isn't all for both devices. Check out the example I gave when using native text, there are lots of "(iOS only)".
Yep, if the platform is "iphone" should be working.
Well, this is strange. I'm now getting the same error if I try to build for an Android Virtual Device.
Only reason I answered was because of the earlier post.And, the two apps I'm trying to build both work on the AVDs.
Good to know that just the single button app works. I think that means you'll have to start stripping code out till it works again.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Unable to build app for testing:
Hi Paul,
If possible could you take a screenshot of your standalone application settings and post it here as there could be something set/named there that is causing the issue.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-
If possible could you take a screenshot of your standalone application settings and post it here as there could be something set/named there that is causing the issue.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-
Re: Unable to build app for testing:
Well... this is embarrassing!
Based on Neil's comment about the possibility of there being something wrong in the standalone application settings, I decided to see if there was anything different between the single-button test program which works, and the relatively simple app that doesn't.
And, I noticed I had changed the contents of the "Identifier" which by default shows as "com.yourcompany.yourapp".
Changing it back to the default solves the problem.
It seems like an odd thing to cause an error, and it seems like an odd error message, but at least I have a solution. Hopefully this will help someone else.
Thanks for all the input.
--paul
Based on Neil's comment about the possibility of there being something wrong in the standalone application settings, I decided to see if there was anything different between the single-button test program which works, and the relatively simple app that doesn't.
And, I noticed I had changed the contents of the "Identifier" which by default shows as "com.yourcompany.yourapp".
Changing it back to the default solves the problem.
It seems like an odd thing to cause an error, and it seems like an odd error message, but at least I have a solution. Hopefully this will help someone else.
Thanks for all the input.
--paul
Re: Unable to build app for testing:
Hi Paul,
I've only seen that "-" and "&" not working there.
Was it one of those or did you find another?
Simon
I've only seen that "-" and "&" not working there.
Was it one of those or did you find another?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Unable to build app for testing:
Oh! Yes, you're right Simon. I did change the Identifier to something containing a hyphen. That seems to cause the problem.
Would be nice if LC could check for this in the Standalone Application Settings screen, rather than later, throwing-up a bizarre error message at build time.
Hopefully Neil is reading this and thinking "Hmm, good idea."
--paul
Would be nice if LC could check for this in the Standalone Application Settings screen, rather than later, throwing-up a bizarre error message at build time.
Hopefully Neil is reading this and thinking "Hmm, good idea."

--paul
Re: Unable to build app for testing:
Hi Paul,
We always take feedback on board and I do think having more informative error dialogs would be beneficial.
I will forward your request onto our Quality Control and development teams.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-
We always take feedback on board and I do think having more informative error dialogs would be beneficial.
I will forward your request onto our Quality Control and development teams.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-