Problem when building an Android Project

Aurélien Bouillon 26 Reputation points
2020-12-12T12:03:03.42+00:00

Hi, I've a problem when building my Android Project, it says that my API version isn't API 30 so I cannot launch the build.

The error message :
Erreur : The android.jar file could not be found for API level 30. This means that the Android SDK platform for API level 30 is not installed. Install it in the Android SDK Manager (Tools> Android> Android SDK Manager ...), or change the Xamarin.Android project to target an installed API version. (C: \ Program Files (x86) \ Android \ android-sdk \ platforms \ android-30 \ android.jar missing.)

The thing is that this API 30 doesn't exists in Android SDK Manager : 47566-image.png

Community Center Not monitored
{count} vote

2 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,426 Reputation points
    2020-12-14T04:54:21.803+00:00

    Hi AurelienBouillon,

    You need to change the framework of your project to API 29:

    1. Right-click Android project
    2. Click Properties
    3. Go to "Android Manifest" tag
    4. Change the "Target Android version" to API level 29

    47853-image.png

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**

    1 person found this answer helpful.

  2. Alessandro Caliaro 4,196 Reputation points
    2020-12-12T12:44:20.71+00:00

    I think you can try to download it (should be a tool inside Visual Studio to download SDKs).
    Otherwise change the target platform to 29 (android 10)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.