app preparation failed - SOLVED

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

app preparation failed - SOLVED

Post by DR White » Sat Jan 01, 2022 12:31 am

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
Attachments
Error Mess.jpg
Last edited by DR White on Mon Jan 03, 2022 2:31 pm, edited 1 time in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9754
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: app preparation failed

Post by dunbarx » Sat Jan 01, 2022 4:51 am

Hi.

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

Craig

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sat Jan 01, 2022 12:13 pm

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.

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sat Jan 01, 2022 3:29 pm

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
Attachments
Error.jpg

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: app preparation failed

Post by jacque » Sat Jan 01, 2022 6:52 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: app preparation failed

Post by jacque » Sat Jan 01, 2022 6:54 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sat Jan 01, 2022 9:00 pm

Jacqueline,

I could not find any SKD Build Tools version 30.
see attachment
Attachments
SDK TOOLS.jpg

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sat Jan 01, 2022 9:23 pm

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?

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sun Jan 02, 2022 12:08 am

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"
Attachments
Error_1A.jpg
Error_1.jpg

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sun Jan 02, 2022 12:10 am

My Android SDK selection is pictured in the attachments:
Attachments
SDK Tools_1B.jpg
SDK Tools_1A.jpg
SDK Platforms_1.jpg

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: app preparation failed

Post by jacque » Sun Jan 02, 2022 12:29 am

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?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sun Jan 02, 2022 12:54 pm

Jacqueline,

Thanks for your response!

Yes I believe I am using Java 8. See attachments.
Attachments
Android SDK and Java path.jpg
Java Download.jpg

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Sun Jan 02, 2022 1:33 pm

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
Attachments
Error_3.jpg

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: app preparation failed

Post by jacque » Sun Jan 02, 2022 7:16 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 689
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: app preparation failed

Post by DR White » Mon Jan 03, 2022 2:18 am

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
Attachments
Error_3.jpg
Android SDK location.jpg

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”