Eclipse + Android Development Tools on laptop withou administrator rights - android

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

Related

Eclipse ADT for Android not working

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.

Got an Error while building android project

I'm a beginner in android's development,I installed all the Build tools and the extras,API 8,11,14,17,19,20.
I create a new project which I compile with the API 17 (the target SDK is API 17).
But when i run the project many errors appear:
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\SLIM\workspace\appcompat_v7\bin\appcompat_v7.jar' NewProject Build path Build `Path Problem`
Description Resource Path Location Type
The project cannot be built until build path errors are resolved NewProject Unknown Java
Problem
I have read the most answers of that problem published on the site but it didn't resolve my problem.
Try installing the API Level 21 in addition to the ones you have.
The 'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 seems to be requesting the API Level 21, so that might just work.

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..

No resource found that matches the given name '#android:style/AlertDialog' error after the latest android 3.2 sdk update

I ran into the following error after upgrading my android sdk to 3.2:
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[aapt.exe] c:\jenkins\workspace\AndroidAppBranch2.0_conversion\res\values\themes.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '#android:style/AlertDialog'.
I didn't change anything in the code and the only thing that I did was upgraded the Android SDK to 3.2 this morning when the SDK Manager prompted me. I upgraded the SDK on another machine (stupid me...) and the same error showed up.
Has anyone run into this?
AAPT is broken in 3.2
Only (discovered) workaround is replacing platform-tools with a previous version...
http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/9b2b2aa389dce367?show_docid=9b2b2aa389dce367
Latest info I could find, seems replacing with the previous version is not going to be a proper fix, nor will there be a change to current version:
http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/351daa9f65a7a09a?lnk=raot

Categories

Resources