Could not compile application class
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Could not compile application class
I have found a few forum posts about this issue. None of them have helped. One suggested installing a different SDK Build-Tool. the tool they suggested to use is already installed. Another said to use JDK 1.9 I had 1.8 installed. 1.9 doesn't exist as far as I can tell. JDK 9 doesn't work at all it seams. any help would be greatly appreciated. As always, Thank you in advance.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Could not compile application class
It sounds like you're trying to generate an Android standalone and you're getting the error "Could not compile application class"?
What OS are you on?
What version of LC are you using?
Are you using Android studio or...?
What OS are you on?
What version of LC are you using?
Are you using Android studio or...?
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Could not compile application class
OK, Thank you, I cant believe I didn't post those things already.
Yes, android app.
Windows 7 x64
LC 8.1.8
Android Studio 3.0.1
Yes, android app.
Windows 7 x64
LC 8.1.8
Android Studio 3.0.1
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
-
- Livecode Staff Member
- Posts: 192
- Joined: Thu Apr 18, 2013 2:48 pm
Re: Could not compile application class
Could you could edit the script of stack "revSaveAsAndroidStandalone" and find the line
and change it to
and see what happens? There should be a more informative error.
Code: Select all
answer "Could not compile application class"
and change it to
Code: Select all
answer "Could not compile application class" & return & the result
and see what happens? There should be a more informative error.
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Could not compile application class
Do your Mobile Support Preferences look something like this?
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Could not compile application class
Not sure why these images don't work, but if you right click and open in a new tab they work.
If you don't trust my external links...
1. Location of Android development SDK root:
C:/Users/Davidj/AppData/Local/Android/sdk
JDK Path: C:\Program Files\Java\jdk1.8.0_162
2. There was an error while saving the standalone application
could not encode class bundle
-Djaca.ext.dirs=C:\Users\Davidj\AppData\Local\Android\sdk\BUILD-~1\270~1.3\lib is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Could not compile application class
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Could not compile application class
Thank you, all fixed, just needed to get rid of JDK 1.8.0_162 and install JDK1.8.0_144.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här