Page 1 of 1

JDK path: (none)

Posted: Mon Jun 22, 2020 12:09 pm
by TheRedLord
Hi guys, so I am trying to export my livecode app to an apk file. I have set the Android SDK location but the JDK path is still none. I checked in my Android studio and I have set the JDK path in it (C:\program files\Android\android studio\jre) but I can't see the JDK path in livecode, any help please?

Re: JDK path: (none)

Posted: Mon Jun 22, 2020 3:05 pm
by mrcoollion
Take a look at: http://lessons.livecode.com/m/2571/l/62 ... oid-studio

This might help to set things up the correct way if you have not already done so.

regards,

Paul

Re: JDK path: (none)

Posted: Mon Jun 22, 2020 4:36 pm
by TheRedLord
mrcoollion wrote:
Mon Jun 22, 2020 3:05 pm
Take a look at: http://lessons.livecode.com/m/2571/l/62 ... oid-studio

This might help to set things up the correct way if you have not already done so.

regards,

Paul
I followed the instructions as it says in the lesson but still nothing happens, as I said, I managed to set the Android SDK location and as far as I know the JDK should be there automatically but it's just not there, I have the SDK location without the JDK path.

Re: JDK path: (none)

Posted: Mon Jun 22, 2020 5:42 pm
by jacque
What version of Java do you have installed? You need Java 8.x.

Re: JDK path: (none)

Posted: Tue Jun 23, 2020 5:15 am
by TheRedLord
jacque wrote:
Mon Jun 22, 2020 5:42 pm
What version of Java do you have installed? You need Java 8.x.
You mean what version of java JDK? I have that latest... If I am not wrong it's 14.0.1

Re: JDK path: (none)

Posted: Tue Jun 23, 2020 5:24 am
by TheRedLord
jacque wrote:
Mon Jun 22, 2020 5:42 pm
What version of Java do you have installed? You need Java 8.x.
If you are talking about the JAVA software, I'll check but I am preaty sure that I have the latest.

Re: JDK path: (none)

Posted: Tue Jun 23, 2020 5:54 am
by jacque
Right, I mean the JDK. You need version 8 specifically. I don't think LC will work with any version higher or lower.

Re: JDK path: (none)

Posted: Tue Jun 23, 2020 11:20 am
by TheRedLord
jacque wrote:
Tue Jun 23, 2020 5:54 am
Right, I mean the JDK. You need version 8 specifically. I don't think LC will work with any version higher or lower.
Ok thank you I will try this and reply if this helps.

Re: JDK path: (none)

Posted: Tue Jun 23, 2020 1:09 pm
by TheRedLord
jacque wrote:
Tue Jun 23, 2020 5:54 am
Right, I mean the JDK. You need version 8 specifically. I don't think LC will work with any version higher or lower.
Hello, it worked and I have the JDK path, thank you very much. But another problem showed up. I have an error now saying "could not encode class bundle" Can you help me with this one? I have downloaded the build tools from Android studio though

Re: JDK path: (none)

Posted: Tue Jun 23, 2020 4:53 pm
by jacque
If you still have the newer JDK installed, try deleting it or changing the folder name. LC may be picking up the wrong version during the build. Also make sure you have the latest build tools installed.