dir.by  
  Поиск  
Компьютер, программы
Xamarin (C# app for Windows, iOS, Android)
 Errors in Xamarin.Android app: Error IDE0006 | Error "Could not find android.jar for API Level" 
посмотрели 18003 раз
обновлено: 3 May 2025
IDE0006 Error:
Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.

The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll (v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0). You need to increase the $(TargetFrameworkVersion) for your project.

The $(TargetFrameworkVersion) for FormsViewGroup.dll (v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0). You need to increase the $(TargetFrameworkVersion) for your project.

The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll (v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0) You need to increase the $(TargetFrameworkVersion) for your project.
еще ошибки
Error: Could not find android.jar for API Level 25. This means the Android SDK platform for API Level 25 is not installed. Either install it in the Android SDK Manager (Tools → Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed.
Чтобы исправить эти ошибки нужно проинсталлировать новую Android платформу
После установки закрываем и открываем проект заново
Теперь нужно выбрать в проекте установленный Android SDK 7.1.1
Нажимаем правой клавишей мыши на проекте Android и выбираем Properties...
В вкладке "Application" устанавливаем Android 7.1
Compile using Android version (Target Framework). Приложение компилируется в эту версию для запуска локально.
В вкладке "Android Manifest" устанавливаем Android 7.1
Minimum Android version. Телефон должен иметь Android версию >= Minimum Android version.
Target Android version. Приложение компилируется в версию Target Android version для запуска на телефоне.

Например, если Android version на телефоне < Minimum Android version для своего приложения, система на телефоне не позволит пользователю установить приложение.
Компилируем проект
Заходим в меню Visual Studio 2017: BuildConfiguration ManagerDebug
На проекте Android нажимаем правой клавишей мыши на "Rebuild"
No mistakes
 
← Previous topic
Installing the Android Platform (SDK 7.1.1 API 25) in Visual Studio 2017...
 
Next topic →
Running and debugging a Xamarin.iOS app on your computer (Windows) in iOS emulator mode
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

 
Xamarin
What is Xamarin?
Download and install Xamarin
Download and install Microsoft Visual Studio to write Miaui applications on a computer with the Windows system
Open Visual Studio (for writing in Xamarin)
Creating a Xamarin app
Creating a new Xamarin app on a Windows computer
Run the Xamarin.UWP app on a Windows computer
Run and debug a Xamarin.UWP app on a Windows computer
Making App Packages for Xamarin.UWP apps on a Windows computer | Run the Xamarin.UWP app using App Packages
Run the Xamarin.Android application on a Windows computer
Run and debug Xamarin.Android apps on your computer (Windows) in Android emulator mode
Running and debugging Xamarin.Android apps on your phone via USB
Running Xamarin.Android app on your phone (create apk file)
Testing Xamarin.Android Apps on Your Phone
Android (install)
Creating an Android Virtual Device in Visual Studio 2017
Installing the Android Platform (SDK 7.1.1 API 25) in Visual Studio 2017...
Errors in Xamarin.Android app: Error IDE0006 | Error "Could not find android.jar for API Level"
Run the Xamarin.iOS application on a computer with an iOS system
Running and debugging a Xamarin.iOS app on your computer (Windows) in iOS emulator mode
Running and debugging a Xamarin.iOS application on a computer with the MacOSX operating system
Xamarin Forms (Maui elements)
What is Xamarin.Forms (Maui)?
(ContentPage, FlyoutPage, NavigationPage, TabbedPage) is a page in Xamarin.Forms | C# | MAUI
(Grid, StackLayout) is the layout of graphic elements in Xamarin.Forms (Maui)
A graphic element in Xamarin.Forms (this is a button, text field, etc., inherited from the View class) | Xamarin.Forms | C# | Maui
Graphical editor for XAML file in Xamarin.Forms
Database in Xamarin
Download and install DB Browser for SQLite (program for working with sqlite)
Open (run) DB Browser for SQLite
Additional topics, questions
Why does the minimum Xamarin.Android program get an apk file larger than 5 mb?
Books about Xamarin
Xamarin Study Books

  Ваши вопросы присылайте по почте: info@dir.by