Module: ':app' platform 'android-32' not found.

已回答

I tried to create an android application in IntelliJ. However, I get the following error message:

Module: ':app' platform 'android-32' not found.

A common suggestion to fix this is to go to SDK manager and install the appropriate SDK. But in my case this doesn't work since SDK 32 is already installed.

Is there a way to fix this problem?

1

Hello,

Is it possible to attach sample project example?

0

How did you solve this?

0

I was not able to really solve it. But what helped is installing an older version of IntelliJ. Currently I am working with version 2021.3.3 without having this problem.

1

Globi, thanks for the feedback, why did you choose IntelliJ IDEA instead of android studio?

0

I am using IntelliJ IDEA Ultimate 2022.2.3 and I am getting this same issue (with any Android SDK I try).

So the only way to solve this is to use an older version?

Jetrbrains, what are you doing?

0

Here is the test project I have been using: https://github.com/trojanfoe/TestApp

0

Trojanfoe 

There is still no solution, I use android studio, there is no this error

0

I am on the trial version of IntellijUltimate and also encounter this issue. I created a brand new android project using the ide. I have also confirmed that I have the sdk installed. I even deleted and reinstalled the android sdk from the manager in the ide just to be sure. 

0

Hi, same problem.. Trial 2022.3.2 Ultimate. Fresh install, New project - Android - Kotlin -... ERROR. .. 

Tested on two new Windows with fresh install..

Which older Version does not have this error?

TIA, Amelie

0

Just installed 2021.3.3..  at the moment working as expected without errors...

0
As a workaround, you could try setting the JDK 11 in the `File | Project Structure | Project` in the IDEA 2022.3.2 version to fix this issue.
The related issue is here: https://youtrack.jetbrains.com/issue/IDEA-298074/Module-app-platform-android-xx-not-found.
0

Was able to fix this in Windows by doing complete invalidate of cache, closing Intellij, deleting .gradle and Android folder containing SDK, then starting Intellij as administrator (toggled to always run as admin) and reinstalling Android SDK then opening Empty Activity and waiting for everything to be downloaded and built again. Worked.

Detailed steps I followed:
open empty barebones project
close Intellij
go to Intellij shortcut -> properties > advanced > Run as administrator (now it always runs as admin)
delete .gradle folder (under /users/yourusername)
delete Android folder containing SDK (under appdata/local)
open Intellij
file > invalidate cache (crossed everything) > restart and close again
restart pc for good measure
start Intellij (as admin) > new project > Android > install SDK > open Empty Activity template

0

Same issue here.

IntelliJ IDEA 2022.2.5
Build #IU-222.4554.10, built on March 15, 2023
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
0

Hi Liudecai, did you try changing JDK to the 11 version? 

0

Hi Olga Mulina

After changing JDK to the 11 version, it works!
Thanks.

0

Liudecai, I'm glad the workaround helped. 
If you have any further questions, please, feel free to contact us.

0

请先登录再写评论。