Page 1 of 2

app preparation failed - SOLVED

Posted: Sat Jan 01, 2022 12:31 am
by DR White
I Have been trying all day to get LV 9.6.6 (RC 1) to make a app file, but have had many difficulties. Most and maybe all self induced.
But can anyone tell me what the message in my attachment means?
Thanks,
David

Re: app preparation failed

Posted: Sat Jan 01, 2022 4:51 am
by dunbarx
Hi.

If you try to make the app in an earlier version, does it succeed?

Craig

Re: app preparation failed

Posted: Sat Jan 01, 2022 12:13 pm
by DR White
Strange!

LC 9.6.6 (RC1) accepts SDK root location, but gives error when making app.

LC 9.6.2 (RC2) does NOT accept SDK root location

I had to change the location of the root directory because by default the Android Studio put the directory in \user\drwhite77\library. That directory was grayed out and LC could not see it. So I put it in "\document\Andriod SDK" directory

I am using the LC link https://lessons.livecode.com/m/2571/l/6 ... oid-studio to install Android sdk.

Re: app preparation failed

Posted: Sat Jan 01, 2022 3:29 pm
by DR White
So, when I try to set the location of LC 9.6.2 (RC2), it does NOT accept SDK root location.

I went back and added ALL of the available components for Android 11 and 10, I barely have any storage left on my computer.
But, I still get the attached error.

Is there another way to get the needed Android SDK other then using the Android Studio?

Thanks,

David

Re: app preparation failed

Posted: Sat Jan 01, 2022 6:52 pm
by jacque
I had exactly the same problem. And once it happened in 9.6.6 my earlier versions of LC started throwing the same errors. The mailing list had no answers. Nothing in my setup had changed.

Like you I downloaded all the components to try to fix it. Then I noticed that the lesson showed build tools 30 had been installed, though the lesson has a big colored box suggesting 30.0.3. So I installed build tools 30 and so far it seems to work.

Now I have to delete all the gigabytes of junk that got installed when I decided to see if I needed all the components of every platform.

Re: app preparation failed

Posted: Sat Jan 01, 2022 6:54 pm
by jacque
BTW, the weird thing was that sometimes I could do a build and sometimes not. Immediately after restarting LC it always worked. Sometimes it worked a second time too, but eventually would error. Then I'd restart LC and it worked for a while again.

Re: app preparation failed

Posted: Sat Jan 01, 2022 9:00 pm
by DR White
Jacqueline,

I could not find any SKD Build Tools version 30.
see attachment

Re: app preparation failed

Posted: Sat Jan 01, 2022 9:23 pm
by DR White
Jacqueline,

Do you by chance use Mac for your programming?

If you are, what location are you using for the Android SKD?

I really don't think LC is seeing the Android SKD or Java properly, when I put it in "\documents\Andriod SDK" directory?

Re: app preparation failed

Posted: Sun Jan 02, 2022 12:08 am
by DR White
After changing SDK Build-Tools from 32 to 30.0.0, my error message changed from java related errors to "-input-list.txt complication failed"

Re: app preparation failed

Posted: Sun Jan 02, 2022 12:10 am
by DR White
My Android SDK selection is pictured in the attachments:

Re: app preparation failed

Posted: Sun Jan 02, 2022 12:29 am
by jacque
I used to have my SDK in a folder I created for development files, which worked fine until we had to start using Android Studio to get files. Studio put the files into /<username>/Library/Android/sdk/ by default. My old folder stopped working soI deleted it and pointed LC prefs to the default Library folder.

I have both 30.0.0 and 30.0.3 platform tools installed. It may be that LC looks for 30 but then actually uses 30.0.3. I'm just guessing. At any rate, I just left them both installed.

The new errors you're getting look like java errors. You need Java 8, that's the only version that will work. Is that what you have?

Re: app preparation failed

Posted: Sun Jan 02, 2022 12:54 pm
by DR White
Jacqueline,

Thanks for your response!

Yes I believe I am using Java 8. See attachments.

Re: app preparation failed

Posted: Sun Jan 02, 2022 1:33 pm
by DR White
I added tools 30.0.3
I shut everything down and rebooted.

Now I get a different error (see attachment).

Concerning your SDK location, how did you get LC to see the default path?
My Mac Big Sur has "/<username>/Library/Android/sdk/" grayed out.
Thats why I had to put it into a different location.


Thanks

Re: app preparation failed

Posted: Sun Jan 02, 2022 7:16 pm
by jacque
Some years ago I went to the Library folder in Finder and dragged it to the sidebar. That way it's accessible from anywhere.

It looks like your Java version is okay. I never moved it from its default location which is somewhere at the root level of the hard drive (not at my Mac right now to check.)

You could try a Google search for "livecode apk preparation failed", it might turn up an explanation.

Re: app preparation failed

Posted: Mon Jan 03, 2022 2:18 am
by DR White
Jacqueline,

I did move my /User/Library folder to my side bar and now everything can use it, including LC.

I re-installed the SKD and tool files to the original default "Library" directory.
LC accepted the location just fine (see attachment).

I still get the same error message(see attachment).

Thanks for your help.

David