I am developing an app using Android Studio and AppCompat. I cannot seem to compile the Android support library to make a TabLayout. I get the error
"Could not find com.android.support:design:23.2.0".
Did you add the package in the Gradle file?
You need to have the Android Support Repository via the SDK manager.
Make sure latest version matches targetSdkVersion
Related
how can i check what are my Android SDK version, Android Build Tools version and Android Support Repository version of a project in Android studio?
Configurations related to the minSdkVersion, targetSdkVersion and buildToolsVersions which are used in the project are in build.gradle of your app module. You can configure it to use any other version as per your requirements.
Android Support Repository version of a project in Android studio?
Now support libraries have been changed to androidx and are a part of Jetpack. Previous support libraries included in the android studio are deprecated now. You can read about these here.
https://github.com/alexsorokoletov/Xamarin.Android.Maps.Utils
I am trying to use that nuget for my xamarin forms android map. However it depends on Google.Play.Services.Maps to be version 32.961 or higher but my current version is 29.0 and when I try to update it I need to update lots of packages (Support.Design, Support.v4 etc) and visual studio is not letting me update that either. I believe it's something about the MonoAndroid version. I get this error message You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework.
Any ideas how I can successfully install this nuget?
Xamarin Forms changed the way it depends on the Android support libraries a few versions ago.
You can see in the NuGet package (I have 2.3.4.247 installed) that MonoAndroid v1.0 requires Android support libraries to be equal to 23.3.0, but MonoAndroid v7.0 requires the version to be greater than or equal to 23.3.0.
To update the Android support libraries you need to ensure you have the latest Android SDK installed in the Android SDK manager, then change the Compile using Android Version (Target Framework) on the Application tab of the project options to be Use Latest Platform, and the Target Android Version on the Android Manifest tab to be Use Compile using SDK version.
Once you have done this you should be able to update the support libraries. I did that by selecting Xamarin.Android.Support.v4 and updating in NuGet.
When I try to update the NuGet packages for my solution, I get a set of errors as follows and however methods I tried, did not resolve the problem. Can someone please explain me and help me resolve this problem? Thank you in advance.
The error message explains the problem. The latest version of the support library is 25.3.1 which is Android 7. Your project targets Android 6. So either change your project's target (in Project Options|General|Target framework) to 7 (or 7.1) or use version 23 of the support library.
As #daramasala said in the reply, "latest version of the support library is 25.3.1 which is Android 7". In my project, the Target Android Version was already set to 7, but then I set the Compile using Android version to Android 7 as well, and after that, I could update the NuGet packages without an issue.
You can set the Target Android Version, Compile using Android version as well as the Minimum Android version by going to project Properties from the Application section....
I imported project from Github and there's error:
I have already update SDK manager with Android Support Respository and Android Support Library:
I have already update SDK manager with Android Support Respository and Android Support Library
If you look at that picture, you will notice that you are on version 14 of the Android Support Repository. Please update the Android Support Repository to the latest version. That should allow you to add 22.2.0 of appcompat-v7.
Fix simple. Click link Install Repository and sync project and continue install.
Not click Show In file
Not click Show In project structure dialog
This diferent links.
I know I know I should be using Android Studio, but I can't for some reasons.
So is there a way to force Eclipse to use an older version of the support library for a project.
For example in Android Studio, we can do that by the 22.2.1 part in the build.gradle file:
compile 'com.android.support:appcompat-v7:22.2.1'
The only option is to find the old version of appcompat-v7, add it (including the sources or jars and all resources) as a library project into your Eclipse workspace and then make your project use/import that library.
Download specific compatibility lib from dl-ssl.google.com repository, described in here: Android Support Library Direct Link for Downloading
Specifically guess/construct your version here:
https://dl-ssl.google.com/android/repository/support_r19.1.zip
Unzip and import as existing source into eclipse.
Check to install according Android SDK Build-tools in the Android ASK manager.