Page 1 of 1
Adaptive Icon error when compiling standalone - Solved
Posted: Tue Jul 09, 2024 12:47 pm
by DR White
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
Re: Adaptive Icon error when compiling standalone
Posted: Tue Jul 09, 2024 6:26 pm
by jacque
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.
Re: Adaptive Icon error when compiling standalone
Posted: Wed Jul 10, 2024 1:11 am
by DR White
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
Re: Adaptive Icon error when compiling standalone
Posted: Wed Jul 10, 2024 2:03 am
by DR White
See attached jpg for Gradle settings. That might be part of my problem, but I cannot make it run any other way.
Re: Adaptive Icon error when compiling standalone
Posted: Wed Jul 10, 2024 2:30 pm
by DR White
I have now got LC making API 33 with Adaptive icons, even if Android Studio will not run emulator.
Re: Adaptive Icon error when compiling standalone
Posted: Wed Jul 10, 2024 2:34 pm
by DR White
2nd Picture
Re: Adaptive Icon error when compiling standalone
Posted: Wed Jul 10, 2024 4:59 pm
by jacque
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?
Re: Adaptive Icon error when compiling standalone
Posted: Wed Jul 10, 2024 7:27 pm
by DR White
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