Android apk only generates the generic icon - Solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 5
- Joined: Tue Dec 08, 2020 2:00 pm
Re: Android apk only generates the generic icon - Solved
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
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
-
- 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
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?
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 5
- Joined: Tue Dec 08, 2020 2:00 pm
Re: Android apk only generates the generic icon - Solved
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.
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.
-
- 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
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.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.
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 5
- Joined: Tue Dec 08, 2020 2:00 pm
Re: Android apk only generates the generic icon - Solved
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.
Anyway, thanks for all your help. It's much appreciated. It can be very fustrating when your stuck.
-
- 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
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.
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
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 5
- Joined: Tue Dec 08, 2020 2:00 pm
Re: Android apk only generates the generic icon - Solved
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.
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.
-
- 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
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
HyperActive Software | http://www.hyperactivesw.com