Page 2 of 2

Re: Android apk only generates the generic icon - Solved

Posted: Fri Aug 04, 2023 6:19 pm
by thawsoe7@yahoo.co.uk
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

Re: Android apk only generates the generic icon - Solved

Posted: Fri Aug 04, 2023 7:40 pm
by jacque
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?

Re: Android apk only generates the generic icon - Solved

Posted: Fri Aug 04, 2023 9:16 pm
by thawsoe7@yahoo.co.uk
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.

Re: Android apk only generates the generic icon - Solved

Posted: Fri Aug 04, 2023 9:49 pm
by jacque
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.

Re: Android apk only generates the generic icon - Solved

Posted: Fri Aug 04, 2023 10:12 pm
by thawsoe7@yahoo.co.uk
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.

Re: Android apk only generates the generic icon - Solved

Posted: Fri Aug 04, 2023 10:44 pm
by jacque
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.

Re: Android apk only generates the generic icon - Solved

Posted: Sat Aug 05, 2023 8:38 am
by thawsoe7@yahoo.co.uk
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.

Re: Android apk only generates the generic icon - Solved

Posted: Thu Nov 16, 2023 6:15 am
by jacque
The above information is incorrect (and likely created by a chatbot.) Android now requires adaptive icons.