I am making an android app that contains action bar and fragment which are not supported for API level 8!
So I just tried to import support library V7 to fix this problem!
But when I try to do it , it doesn't find support library for V7 , there is support.v4 but not v7.
what should I do to fix it?
Should I download anything for my android SDK?
Download Android Support Library in Your SDK manager under Extras. Then Import appcompat from following folder in your sdk.
Android-SDK\extras\android\support\v7\appcompat
The first step is to download the library through the SDK manager.
Support library v7 is a library project, so needs to be added as a new project to your workspace.
Note: You can't just drop the .jar in because it has additional XML resources.
There's some pretty thorough instructions on how to add it located here.
Related
how to properly use the textinputlayout? what has been tried are as follows:
import the appcompat project import as library, import the support design jar
import the appcomtap project import as library, import the support design project import as library.
both produced the error No 'id' attribute supplied <public>, and no previous id defined in this file. this files are from support design -> res-public -> public_attr, public_string and public_styles.
if I did not included them, it says like missing backgroundTint.
the manifest file uses sdk min 11, target version is 22. the appcompat and support design is also 22 (tried 23 for all of them non worked).
also updated the support library to latest
what is the correct steps?
found the answer, just follow the steps provided by the answer marked as correct. steps to properly use android design support library
basically just import the app compat v7 targeting the latest api
then create an android project for design support and place all files of the design support library and then add the app compat v7 library to the newly created android project (design support)
you can then use this project marked as library to any project that needs this design support library (just make sure the app theme uses the Theme.AppCompat.Light.DarkActionBar at least to make it work)
I updated My Android Support Library Version to 23.1.1?.. But Can't able to find and Import design Library?..
In order to use android design support library, try importing it from your SDK library.
It should be in your_SDK_path/extras/android/support in the folder you can find design, import it as a project in your eclipse and set is as is Library.
Just Refresh, Clean and Build.
You can find your library here inside your SDK
.../sdk/extras/android/support/design/libs
So, import from that, you will get your library.
I'm working on an Eclipse Android project (target SDK 18). Since I wanted to use some Material Design features from Android 5 I added the library project Design Support Library (Target SDK 23) to Eclipse and linked it to my project. This project links to another library project called Android-support-v7-appcompat.
I get the following error: "The import [...].myProject.R cannot be resolved".
Whenever I remove the support library from my project the error disappears.
Since a lot of people had the same problem before I already tried rebuilding and cleaning the project a couple of times. I read this post and added the android-support-v7-appcompat.jar to my project. I delted the support v4 jar from the support-v7 libs folder. Then I followed this guide and made sure that the \res folders didn't contain any errors. Still no success. I hope someone can help me.
So when I import the Android Support Library v7 (appcompat JAR), I see that I get a noclassdeferror when trying to use it. This is because the package android.support.v7.appcompat is not being found as it is not even there in appCompat.JAR. I confirmed this by extracting the contents of the JAR file. I tried reinstalling the JAR with SDK Manager, however I am missing the same package every time. Can someone tell me what's going wrong?
Thanks
You have to import the appcompat library in to your project...please check the following link for getting how to setup appcompat in your project..
https://developer.android.com/tools/support-library/setup.html
thank you
Also had this problem. Yes, I knew I need to use the SDK Manager dialog to download the support library from the extras folder, as per the Support Library Set-up link, but it wasn't listed there - there is only the "support repository".
The problem is that it is hidden by default, as it has been deprecated. You need to check the "show: obsolete" checkbox. And then it's available to download.
You need to import support
dependencies {
...
implementation "com.android.support:support-core-utils:28.0.0"
}
I followed the steps given in http://developer.android.com/tools/support-library/setup.html#add-library
During the step: Create a library project(Adding libraries with resources), for the v7 appcompat project, I see project titled appcompat instead of android-support-v7-appcompat. Where am I going wrong? Please help.
Answer:I realized for older versions of Android SDK we get appcompat titled project not the v7 one.