Adaptive Icon error when compiling standalone - 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

Post Reply
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Adaptive Icon error when compiling standalone - Solved

Post by DR White » Tue Jul 09, 2024 12:47 pm

Please attachment.

I worked all day yesterday till midnight trying to compile an Android file. I made significant progress, but for the last 6 hours I cannot get past the attached error message.

I went through the LC lesson on Adaptive at least a dozen times.

I went through the LC lesson on getting the proper Java 8 software multiple times times.

I YouTube till I could not find anything remaining.

I have tried countless trail and error approaches without success.

When I run "my application" file in Android Studio and compile it to the emulator, the adaptive icon appears perfect.

Any suggestions?

Thanks,

David
Attachments
Error Message using Adaptive Icon.jpg
Adaptive Icon error when compiling standalone
Last edited by DR White on Wed Jul 10, 2024 7:27 pm, edited 1 time in total.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Adaptive Icon error when compiling standalone

Post by jacque » Tue Jul 09, 2024 6:26 pm

You're almost there, since you've got a valid res folder with all the data. Follow the path in the error message to locate that res folder and copy it. Paste the whole folder into a place where you have permissions,, I usually put it in the same folder with my mainstack. Then change the LC standalone settings to point to the res folder and it should work.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Adaptive Icon error when compiling standalone

Post by DR White » Wed Jul 10, 2024 1:11 am

Jacque,

I did just what you said, but still get same error.

I have Android Studio:
Android Studio Jellyfish | 2023.3.1 Patch 1
Build #AI-233.14808.21.2331.11842104, built on May 14, 2024
Runtime version: 17.0.10+0-17.0.10b1087.21-11572160 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Metal Rendering is ON
Registry:
ide.experimental.ui=true

What version Android Studio are you using?

Thanks,

David

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Adaptive Icon error when compiling standalone

Post by DR White » Wed Jul 10, 2024 2:03 am

See attached jpg for Gradle settings. That might be part of my problem, but I cannot make it run any other way.
Attachments
Android Studio Gradle settings_2.jpg

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Adaptive Icon error when compiling standalone

Post by DR White » Wed Jul 10, 2024 2:30 pm

I have now got LC making API 33 with Adaptive icons, even if Android Studio will not run emulator.
Attachments
Android Studio that works with LC.jpg

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Adaptive Icon error when compiling standalone

Post by DR White » Wed Jul 10, 2024 2:34 pm

2nd Picture
Attachments
Works with LC But will not run emulator_2.jpg

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Adaptive Icon error when compiling standalone

Post by jacque » Wed Jul 10, 2024 4:59 pm

I've never tried to run Studio in any of its native capacity, my only use for it was to create the adaptive icon. In fact, other than that, I have no idea how Studio works. I went straight to the icon settings and used the res folder it created. That worked with LC, which was my only goal. I'd ditch Studio entirely if there was a web site that created adaptive icons. There may be now, it's been a while since I looked.

Unless I misunderstood, it looks like you have an icon that works with LC now, right?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Adaptive Icon error when compiling standalone

Post by DR White » Wed Jul 10, 2024 7:27 pm

Yes, everything is good now.

I didn't realize that when the Android Studio would run properly with JRB-17 for the gradle, the RES folder it produced could not be read properly by LC .

But when I used JDK 1.8 for the gradle, Android Studio could not compile the sample project or run the emulator. But, I could make my adaptive icon (even though the project had crashed) AND I could copy it to stack directory AND LC COULD find the proper files that were generated in the RES folder AND compile and make .aab and .apk files.

Then when I change the gradle back to JRB-17 for the gradle I can open the emulator and LC finds it and uses it to test the LC stack.

Thank you for your help,

David

Post Reply