ERROR: Module 'app': platform 'android-28' not found. and Design editor is unavailable until after a successful project sync

AndroidAndroid StudioAndroid Appbarlayout

Android Problem Overview


So, I am new here just installed Android Studio and then wanted to create a basic activity. But the thing is they want me to install the SDKs and Haxm which is not being installed through SDK manager. I have tried a lot and have used all the ways stated in Stack-overflow to get rid of this but none of their ways has functioned.

enter image description here

Android Solutions


Solution 1 - Android

Go to Tools->sdk manager->install API Level 28 then restart.

Solution 2 - Android

  1. go to Tools
  2. Select SDK Manager
  3. Under SDK Platforms select Android 9.0 (Pie) (API 28)
  4. Then Apply and Download the API

Solution 3 - Android

I face the same problem. First, install API Level 28 & Restart the Android studio.

Solution 4 - Android

First of all! you need to update your sdk manager that too essential tools are: build tools platform tools tools and android Emulator

.....

Now go to LOGCAT , click on configure sdk..... put it to latest and click autoconfig button for each bar.

thats it rebuild it! You are done with 100 percent% successful error solving, Your Activity.xml file will be displayed with out any warning or error!

Solution 5 - Android

After reinstalling and upgrading my android studio to android 4, I faced the same challnge. but what I did was to go to tool->sdk manager and then install some other APIs including the error messages API 28 not installed and it works fine.

Solution 6 - Android

  1. Open Android Studio in order to see 'Welcome screen' (if a project will directly open, you can close it in order to go to the 'Welcome screen')

  2. There is a 'Configure' menu in SDK manager (first option from drop down list).

  3. Open then select the needed android SDK version(s), press ok and wait for downloads (it will take some time until everything is installed).

  4. After this, when you open a project, the 'tools' menu is updated with all missing content.

Solution 7 - Android

I faced the same problem but I uninstalled android studio and reinstalled it while connected to the internet . it downloaded the updated SDK and other tools by its self . it works perfectly

Solution 8 - Android

If you already opened a project, the "SDK Manager" can be found on the main screen SDK Manager Icon

Then you can add the missing sdk.

Solution 9 - Android

Turn on Internet and open android studio in that select "Tools->sdk manager" and select api level 29, download and apply it. Close android studio and open again ✨

Solution 10 - Android

Check the buildToolsVersion of your project in app level Gradle file. Then check whether you have installed that sdk version. You can check it on AVD manager. If you haven't buildToolsVersion sdk installed then install first and rebuild the project.

Ex. If your buildToolsVersion is 28 , you should install Android 9.0(Pie) - API Level 28 SDK.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionnav2236View Question on Stackoverflow
Solution 1 - AndroidMohammad KashemView Answer on Stackoverflow
Solution 2 - AndroidhexhadView Answer on Stackoverflow
Solution 3 - AndroidDipak Kumar BhatiyaView Answer on Stackoverflow
Solution 4 - Androidsuraj pragadaView Answer on Stackoverflow
Solution 5 - Androidaweda azeezView Answer on Stackoverflow
Solution 6 - AndroidRadu ComaniciuView Answer on Stackoverflow
Solution 7 - AndroidInsookwaView Answer on Stackoverflow
Solution 8 - AndroidMaurizio Lo BoscoView Answer on Stackoverflow
Solution 9 - AndroidVarunView Answer on Stackoverflow
Solution 10 - AndroidruwanmadhusankaView Answer on Stackoverflow