Target API level 31

What problem are you trying to resolve??
If you want to change sdk target version, use this post.

Hello, i've been absent since two weeks. I still can´t upload my .aab file. PLEASE HELPPPPP:(

You found the correct thread which is great... however you forgot to read the contributions, especially this one

Taifun

solution with video tutorial working for me

How to change Target API level 30 to 31 in MIT App Inventor 2
Follow the steps-:

  1. Open the Main site of the MIT App Inventor http://ai2.appinventor.mit.edu.ezproxy.canberra.edu.au/
  2. Open Your App.
  3. Now Click on the Project and export the aia file of the selected project.
  4. Now Open the Test version of the App Inventor link -: http://ai2-test.appinventor.mit.edu.ezproxy.canberra.edu.au/
  5. Now Click on project and import the aia file that you have recently exported.
  6. Now go again the main site http://ai2.appinventor.mit.edu.ezproxy.canberra.edu.au/
  7. Click on the project and select Export Keystore
  8. Now Import the keystore in your test version of the app inventor http://ai2-test.appinventor.mit.edu.ezproxy.canberra.edu.au/
  9. Now Build the aab file and upload this file to playstore
2 Likes

Yes you can retry building ur apk and/or creating test apk to see if its your app that have a problem.

no funciona

may i know the error ?

@TheCodingBus The best solution can be to wait for a few days, or use APK Editor studio :slight_smile: Since API 31 update will be coming soon!

Also I am one of your viewers
2 Likes

@Ridoy1 Here I use VS code and APKLab extension

  1. Open VS code just the program
  2. CTRL + Shift + P ➜ APKLab: Open an APK
  3. For edit Manifest AndroidManifest.xml replace android:exported="false" > android:exported="true"
  4. For set targetSdkVersion change in apktool.yml then save
  5. Right-Click on or inside apktool.yml file ➜ APKLab: Prepare for HTTPS inspection
  6. Right-Click on or inside apktool.yml file ➜ APKLab: Rebuild the APK

now I have only memory heap error so this may work if my memory is enough

Hi, I did it, the app was loaded correcly and availlable for alpha test but, at start, a message "The permission READ_EXTERNAL_STORAGE was denied" appears. No problem with the same app built with "standard" ai2 and installed using apk.
There is a known walkaround?
Thanks

App Inventor already has this option (which is probably why Kodular has it, as Kodular is basically a clone, using MIT's Open Source).

That should not happen. In order to understand/investigate the problem, we need the aia.
So post the aia or send it to me via PM.

I took a look at your aia. Your app has 17 screens. It should usually be no more than 10.

I haven't tested your app. But maybe READ permission is no longer automatically requested on the test server (targetSdk 31).

So request this permission manually (e.g. in the Screen.Initialize event):

Build the APK, try and let us know ...

Thanks.
I'll try

Thanks. The permission works now, but I have another problem.
The signature key seems to be changed from last build i did with ai2-test and google play refuse a new release. The app is published as internaal test and seems non possible to delete and make a new one.
Whai I can do ?

Which component does no longer request READ permission (automatically)?

  • Export the keystore from the AI2 server and
  • import it on the test server.
  • Set the versionCode to n+1,
  • build the AAB and
  • upload it to the Play Developer console as an internal test track.
1 Like


These are the blocks generating the error. I suppose in writing the downloaded image file to filesystem

What does this have to do with the keystore?
And post all relevant blocks ...

Take a Label, set fileName to it and post the "Do it" result.