Android apk only generates the generic icon - 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

thawsoe7@yahoo.co.uk
Posts: 5
Joined: Tue Dec 08, 2020 2:00 pm

Re: Android apk only generates the generic icon - Solved

Post by thawsoe7@yahoo.co.uk » Fri Aug 04, 2023 6:19 pm

Thankyou for the very quick reply.
Yes I have followed the instructions. I have previously used android studio last year to make adaptive icons, which worked. In standalone settings I selected the res folder. It is only now that I seem to be getting these errors. These errors occurred with LC nine dot six dot nine (the forum won't let me post numbers??). I haven't been using LiveCode for a year and have just started again this summer.

I only mentioned editing the manifest because it was mentioned in a previous post.
Regards

Thaw

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

Re: Android apk only generates the generic icon - Solved

Post by jacque » Fri Aug 04, 2023 7:40 pm

What version of Android Build Tools are installed? You need 30.0.3.

Also, I wonder if the names of the files are causing a problem, what happens if you shorten the app identifier and omit the underscores? For example: com.phoenixgames.bmx. I'm not sure that's relevant but file paths are often an issue. Can you post a screenshot of the Android pane in standalone settings?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

thawsoe7@yahoo.co.uk
Posts: 5
Joined: Tue Dec 08, 2020 2:00 pm

Re: Android apk only generates the generic icon - Solved

Post by thawsoe7@yahoo.co.uk » Fri Aug 04, 2023 9:16 pm

Yes I only have SDK build tools thirty dot three installed. I found out that if you have a later one installed (eg thirty-four) you get a d-eight compiled by newer version error.

I tried shortening the identifier but still get a link error.

Thanks for your help.

I have actually found a workaround. I have older apps that use adaptive icons. I have taken the mipmap folders from the newly created adaptive icons and replaced those in the older res folder. I pointed the app to that older res folder and it compiled.

It may be something to do with android now creating a res folder that is incompatible with livecode. I will try again on a windows machine tomorrow.

Again thanks for your insight.
Attachments
Error with shortened identifier.jpeg
Standalone settings with shortened identifier.jpeg
SDK Build Tools.jpeg

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

Re: Android apk only generates the generic icon - Solved

Post by jacque » Fri Aug 04, 2023 9:49 pm

It may be something to do with android now creating a res folder that is incompatible with livecode. I will try again on a windows machine tomorrow.
Glad you found a workaround. LC doesn't create the res folder, Android Studio does that. I've been building apks with LC 9.6.9 without a problem though, so I think something else is happening.

BTW, you can post URLs and numbers with dots after you have seven posts here. That's to prevent bots from posting URLs. You're about halfway to that many posts now.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

thawsoe7@yahoo.co.uk
Posts: 5
Joined: Tue Dec 08, 2020 2:00 pm

Re: Android apk only generates the generic icon - Solved

Post by thawsoe7@yahoo.co.uk » Fri Aug 04, 2023 10:12 pm

Yes I meant that maybe Android Studio is creating a res folder that is incompatible with LiveCode.
Anyway, thanks for all your help. It's much appreciated. It can be very fustrating when your stuck.

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

Re: Android apk only generates the generic icon - Solved

Post by jacque » Fri Aug 04, 2023 10:44 pm

I think we're ready to dismiss this thread, but I just wanted to add one more thing. I made new adaptive icons for two different apps last week and it worked, using LC 9.6.9 and Android Studio 20.20.3. For future reference, or for anyone who is having trouble, I followed these instructions:

https://developer.android.com/studio/wr ... ons#access

Most apps probably need the info in section "Create adaptive and legacy launcher icons". This worked for me.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

thawsoe7@yahoo.co.uk
Posts: 5
Joined: Tue Dec 08, 2020 2:00 pm

Re: Android apk only generates the generic icon - Solved

Post by thawsoe7@yahoo.co.uk » Sat Aug 05, 2023 8:38 am

I have got this working.
I created a new user account (I'm on MacOS Sierra) to have a clean install.
I installed Android Studio three dot five dot three. (August twenty ninteen)
Created the res folder using that and used LiveCode nine dot six dot nine.

Hope this helps anyone else encountering this compiler error.

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

Re: Android apk only generates the generic icon - Solved

Post by jacque » Thu Nov 16, 2023 6:15 am

The above information is incorrect (and likely created by a chatbot.) Android now requires adaptive icons.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”