Package name - how do you set a custom package name?

In order to be able to release an app in the Play Store, at least the following requirements must be met:

  1. The version code is higher than the current version.
  2. The packageName is the same (as the previous / original one).
  3. The keystore is identical (with the previous / initial version).
  4. The targetSdkVersion corresponds to the minimum SDK required by Google (from Aug 2021: SDK 30 for new apps and from Nov 2021 also for updates).
3 Likes

This packageName must be created by an offline version of AI2.

2 Likes

The packageName created with AI2 (online version) is:
appinventor.ai_<email>.<projectName>

E.g. in my case:
appinventor.ai_bodymindpower.Relax

2 Likes

Thanks so much for your rapid reply. I did increment the version number. I'm now trying to rename the project name in AppInventor to the same as the original one (I found another post about that, but as it is still in the rubbish bin I'm trying to figure out how to empty that so I can do this).

This is the best way.

1 Like

There is no way to get this packageName com.test.SphinxGlassMaintenanceTeam with AI2 (online).
So you must use AI2Offline. Btw, which offline version did you use?

2 Likes

I have just downloaded the offline version 3.4, and, now I have your confirmation, I will fire it up and see what I need to do to get it to spit out the project with that name format.
By the way I would think everyone using AppInventor is going to have this same problem. Should you not post something on the AppInventor Front page with instructions?

What do you mean by that?

I was thinking that all those that already have an app on Google Play and are trying to update it may
encounter this same problem - perhaps only if they changed the app name in AppInventer between times (not everyone will know that changing the app name would do this). Is this not the case? Is this problem not related to Google's new policy regarding app bundles?

The appName doesn't matter. The projectName has to be the same. And you cannot switch between AI2 and AI2Offline (because the packageName will change regardless of the projectName).

grafik

No, it is not related to ...

I had trouble uploading my updated app,, cause i changed the project name changing two uppercase letters to lowercase. When i rename again with the uppercase letters like the original sended to playstore, it was accepted ok.

This is amazing do you know something like this that works on fedora also?

It works with Linux Mint so should work with Fedora to. Why not try it?

1 Like

How should I run it please tell?

Just go to AI2Offline - Browse /3.9 at SourceForge.net and get the 7z file. Extract it and run the sh files. Everything is explained inside the archive.

2 Likes

Last question is this tool safe? sorry for this noob question

Why so paranoia? Why shouldn't it be safe. Even if it is not a App Inventor product we even talk about it here and advise using it sometimes.

4 Likes

Can anyone help me fix this error while build it says:

Exception in thread Thread-2 java.lang.UnsatisfiedLinkError: Cant load library: /usr/lib/jvm/java-11-openjdk-11.0.14.1.1-4.fc35.x86_64/lib/libawt_xawt.so

please help me fix it

have you install java and set up JAVA_HOME?
Follow the README .txt instruction.