[ERROR} Your APK or Andorid App Bundle must have the package name

47 views
Skip to first unread message

Kevin Chen

unread,
Oct 20, 2019, 9:09:07 AM10/20/19
to mitappinv...@googlegroups.com
Hi All,
My App has more than 100,000 downloads and I try to update my App to latest Android SDK 28.
However, when I upload the .APK downloaded from https://ai2.appinventer.mit.edu and try to upload to playstore, I got this error message:

Your APK or Andorid App Bundle must have the package name appinventor.ai_yuanryan_chen.BT_LED

My App name on playstore: "Color LED Controller"
Screen1 title name: Color LED Controller V3.1
File name: "BT_LED_V3.apk

I have updated the version 2 to 3 times without issues.

What I have to change to let me upload the new APK?

Thank you,

Kevin 

TimAI2

unread,
Oct 20, 2019, 9:31:25 AM10/20/19
to MIT App Inventor Forum
What is the package name of your latest update ?

Does it match :  appinventor.ai_yuanryan_chen.BT_LED  ?

Did you build it with a different account ?


Kevin Chen

unread,
Oct 20, 2019, 9:59:21 AM10/20/19
to MIT App Inventor Forum
Hi TimAI2,

What is the package name of your latest update ?  A: To be honest, I'm not sure where to find the package name. Please show me where it can be found.
Does it match :  appinventor.ai_yuanryan_chen.BT_LED  ? A: 
Did you build it with a different account ? A: Account is the same. I tried to use a different account, Playstore replied me with error message "Key different"

Best regards,
Kevin

Taifun

unread,
Oct 20, 2019, 10:10:34 AM10/20/19
to MIT App Inventor Forum
this yuanryan_chen must be your login
and this BT_LED your project name

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.        

TimAI2

unread,
Oct 20, 2019, 10:13:11 AM10/20/19
to MIT App Inventor Forum
You have to decompile the apk using such as apktool/App to Market/App Modder
and then you will find the package name in the manifest.xml, near the top

You could try editing this to match and recompile again....

See here for more info:

Kevin Chen

unread,
Oct 20, 2019, 10:34:36 AM10/20/19
to MIT App Inventor Forum
Hi Taifun,

YES, this is correct. 
>>this yuanryan_chen must be your login
>>and this BT_LED your project name

Is there a way to let me see the package name within AI2 editor?
And where can I change it?

Thanks,

Kevin

Kevin Chen

unread,
Oct 20, 2019, 10:38:07 AM10/20/19
to MIT App Inventor Forum
Thanks, I will take a look and see if I could manage it.

Best regards,
Kevin

TimAI2

unread,
Oct 20, 2019, 10:58:41 AM10/20/19
to MIT App Inventor Forum
"Is there a way to let me see the package name within AI2 editor?"

The closest you can get is to save an aia project, open it with your unzipper and look at the first line in project.properties

You can change it by changing the account you use, and the appname you give it

Kevin Chen

unread,
Oct 20, 2019, 11:11:20 AM10/20/19
to MIT App Inventor Forum
Thanks, I will give it a try!

Regards,
Kevin

Kevin Chen

unread,
Oct 30, 2019, 10:52:13 AM10/30/19
to MIT App Inventor Forum
Hi All,
I know why now. I can't change the APK name. The APK name ready for upload must be exactly the same with previous version.  

In the previous version, my APK was named "BT_LED".
When I changed the name to "BT_LED_V3" and try to upload, the error occurred!

Thanks for all your help!

Kevin

Reply all
Reply to author
Forward
0 new messages