Could not compile application class...

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kap1987
Posts: 21
Joined: Tue Feb 21, 2017 6:25 pm

Could not compile application class...

Post by kap1987 » Tue Feb 21, 2017 6:35 pm

Hey i just wanted to start coding an app. So for testing only built a blue screen with a button.

- Java SD Development Kid 8 Update 121 is installed
- Android SDK is installed
Android SDK Tools 25.2.5 & Android SDK Tools 25.0.3
Android 7.1.1 (everything installed)
Android 7.0 (everything installed)
Android 6.0 (everything installed)
Android 5.1.1 (everything installed)
Android 5.0.1 (everything installed)
- Live Code Community 8.1.3 is installed

Live Code finds Android SDK in preferences and shows right direction for JAVA SDK.

I get an error when building the apk or trying to test it directly on my device.

standalone application settings say android only checked.
minimum version: android 5.0
label has no "-"
Version Code: 1


But it always says: "Could not compile application class"

when trying to test.


Could anybody help me please?

THX

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Could not compile application class...

Post by LiveCode_Panos » Tue Feb 21, 2017 6:46 pm

Hi kap1987,

This error possibly comes from the Android SDK. I think you need to install Android 4.0.3 (API 15) as well.

Best,
Panos
--

kap1987
Posts: 21
Joined: Tue Feb 21, 2017 6:25 pm

Re: Could not compile application class...

Post by kap1987 » Tue Feb 21, 2017 6:51 pm

Thank you... Do you mean 4.0.3 only or the above up to 5.0 as well?

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Could not compile application class...

Post by LiveCode_Panos » Tue Feb 21, 2017 7:00 pm

No, just 4.0.3.

BTW are you on OS X, Linux or Windows?

kap1987
Posts: 21
Joined: Tue Feb 21, 2017 6:25 pm

Re: Could not compile application class...

Post by kap1987 » Tue Feb 21, 2017 7:01 pm

I am on windows (10). i installed 4.0.3. and now it works... i have the apk. but i cannot install it on the device.

"There is a Problem Parsing the Package" it says :(

kap1987
Posts: 21
Joined: Tue Feb 21, 2017 6:25 pm

Re: Could not compile application class...

Post by kap1987 » Tue Feb 21, 2017 7:18 pm

Oh ok. it was a problem with the file... new file worked... thx anyway ;)

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Could not compile application class...

Post by LiveCode_Panos » Tue Feb 21, 2017 9:50 pm

Great :)

BTW you may find this link useful: https://livecode.com/how-to-deploy-apps ... d-devices/

Best,
Panos
--

Post Reply

Return to “Android Deployment”