Eclipse ADT for Android not working - android

I installed ADT on my Eclipse so I can develop Android apps. The issue is that every time I try to load the project, it shows lots of errors like these:
[2015-08-01 07:15:41 - AndroidApp1]
C:\Users\Arad\workspace\appcompat_v7\res\values-v21\themes_base.xml:137:
error: Error: No resource found that matches the given name: attr
'android:colorPrimaryDark'. [2015-08-01 07:15:41 - AndroidApp1]
[2015-08-01 07:15:41 - AndroidApp1]
C:\Users\Arad\workspace\appcompat_v7\res\values-v21\themes_base.xml:146:
error: Error: No resource found that matches the given name: attr
'android:windowElevation'. [2015-08-01 07:15:41 - AndroidApp1]
[2015-08-01 07:15:41 - AndroidApp1]
C:\Users\Arad\workspace\appcompat_v7\res\values-v21\themes_base.xml:150:
error: Error: No resource found that matches the given name: attr
'android:windowElevation'.
[2015-08-01 07:15:41 - AndroidApp1]
I found a similar question where it said to remove Android Wear ARM EABI v7a System Image so I uninstalled it and tried but without success. Later, I uninstalled the whole API 22, but still nothing and now it shows errors about API 21. What can I do about it?

Here is one thing to do:
After importing the library for appcompat-v7 right click and go to properties
Click Android and change the Project Build Target to API 21
Clean and rebuild
step 1 :
step 2 :
This should fix the issue of not finding the resources, I believe.

You need to make sure that you have installed the correct libs from the SDK manager and you've included v7-appcompat as a library project. You have to do this because v7-appcompat contains resource files that unlike android studio, are not added automatically by ADT.
See accepted SO answer here for more: appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'
It's important to know that ADT is no longer supported. This means that it's no longer getting bug fixes or better support for newer features.
Relevant snippet from http://developer.android.com/tools/sdk/eclipse-adt.html
Google recommends switching to Android studio
If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see Migrating to Android Studio.

Related

Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml Android AAPT

I am getting error as
Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /res/values line 7 Android AAPT Problem
I have created the android app using settings in Android JUNO:
Min Req SDK: API 8,
Target SDK: API 21,
Compile With: API 25,
Theme: Holo Light with Dark Action Bar (Also tried with None),
Create Activity: checked,
Create Activity: Blank Activity (Also tried Empty Activity),
I have also tried upgrading Android Support Library from Android sdk, but did not help.
When I tried to import, AppCompat is not present anywhere.
Also when I tried to Add Library from Project Properties, there is no AppCompat available there.
Please help me with detailed explanation or let me know if any more details are needed.
I have solved this one by downloading Android Studio and while installing I have selected "Do not import anything from previous installation". There may be problem with my previous installation with Eclipse Juno.
I Hope this will help someone looking for an answer.

Eclipse + Android Development Tools on laptop withou administrator rights

Due to my business trips, I would use my professional laptop for improving my skills in Android development. I don't have administrator rights, so I installed Eclipse and ADT plugin. Sadly, I had few errors when creating new Android Application Project. For exemple, for creating a new project with blank activity with fragment ; min SDK API 11 ; compile with API 18 ; target API 18, I had 50+ errors like :
...\WorkSpace\appcompat_v7\res\values-v21\themes_base.xml:146: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
I also had this king of error :
Error retrieving parent for item:No resource found that matches the given name 'Theme.AppCompat.Light'.
I tried few tips to solve problems using appcompat :
Error retrieving parent for item:No resource found that matches the given name 'Theme.AppCompat.Light'. MY R.java is missing
Hello World Android App, Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name
Error in styles_base.xml file - android app - No resource found that matches the given name 'android:Widget.Material.ActionButton'
https://www.youtube.com/watch?v=HpXoCfoX_QY
I reinstalled Eclipse and ADT plugin, but nothing to do... I'm becoming crazy !
I also tried to install Android Studio using zip version, but I'm facing another issue :
"No JVM installation found. Please install a 64-bit JDK. If you have already a JDK installed, define a JAVA_HOME variable in (...)."
Thanks in advance for your help.
Fred

Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'

i programed with eclipse but i try make project today that eclipse make errors.
solution that told all is for android studio.
enter image description here
You should change your target sdk version to 23.
Reason : you may be using support design library (v23.z.z) which is dependent on the sdk version 23

Issue with android appcpmpat_v7 libraries , please go through the whole content

Hey Guys I need Some help here , I was testing and creating Apps with android 4.4 W and 2.2 froyo and recently I chose to install the Other android sdks such as 4.4.2 , 4.2.2 respectively and from there after I am getting the Above Error mentioned , I tried adding support libraries for the project and tried a couple of things mentioned on stackoverflow .
the errors when we first build the project are :
C:\Users\user\Documents\android-workspace\appcompat_v7\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
C:\Userprofile\Documents\android-workspace\appcompat_v7\res\values-v21\themes_base.xml:157: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
C:\Userprofile\Documents\android-workspace\appcompat_v7\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
the following are the errors : and not able to resolve android R Issue when i create a new project and working on it
Description Resource Path Location Type
error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 line 75 Android AAPT Problem
Description Resource Path Location Type
The container 'Android Dependencies' references non existing library 'C:\Users\user\Documents\android-workspace\appcompat_v7\bin\appcompat_v7.jar'
Follow these steps.
Right Click on the project
Go to properties.
Click Android from left.
In right you will see a list of android versions. Check the one with api level more than 18.
Click Ok, Now clean your project and rebuilt it again.
Hop it will remove your error.
Deleting all the <style> tag in the themes.xml file from the values-v21 folder and values-v14, values-v11 cleared this issue for me...

No resource found that matches the given name '#android:style/Widget.Holo.ActionBar'. R Cannot be resolved to a variable

First of all i want to say that i know this topics have been brought up lots of times. But i can't seem to find the solution for this problem.
This is some of the errors from the log:
/home/name/adt-bundle-linux-x86_64-20140702/sdk/extras/android/support/v7/appcompat/res/values-v14/themes_base.xml:159: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/home/name/workspace/Projectname/res/values-v14/styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.
/home/name/workspace/Projectname/res/values-v14/styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
/home/name/workspace/Projectname/res/values-v14/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/Widget.Holo.ActionBar'.
I'v made a custom theme, and im using Actionbar.
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="9" />
All of this used to work, then i had to reinstall my eclipse, so i imported the project to the freshly installed one. And that is when the errors occurred.
The R.File is also missing.
Please help me, im starting to lose my mind becuase of this problem.
EDIT 1:
To clear things out. I added the android-support-v7-appcompat with this method (Adding libraries with resources):
http://developer.android.com/tools/support-library/setup.html
The project build target on android-support-v7-appcompat is Android 4.0 and the project build target on my project is Android 2.3.3.
Is this right? Im not really sure what it should be like.
I can't say exactly, but if you are using appcompt library,
Project(Right Click)--> Properties--> Android--> Library section--> Add--> appcompt library.
can you please check this once.
Edit :
Compile with API Level 14 - when you compile your app with SDK level 9, the compiler doesn't know the elements shown in the error log
Or Project(Right Click)--> Android Tools --> Add Support Library / Fix Project Property..

Categories

Resources