processDebugResources: Android build error - android

When I am going to build my application with ionic build android, facing following problems.
:processDebugResources
/home/rakesh/myproject/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3:
AAPT: Error retrieving parent for item: No resource found that matches
the given name
'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/home/rakesh/myproject/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4:
AAPT: Error retrieving parent for item: No resource found that matches
the given name
'android:TextAppearance.Material.Widget.Button.Colored'.

check your compilesdkversion be equal or greater than 24

Related

Android System Cleaning App Open Source

I'm trying to translate this open source project and make it my own but I'm running into errors when trying to clean or rebuild. I need help figuring out what I need to do.
Here's my error list:
/Users/Technologx/Desktop/Android Projects/New/SysVac/app/build/intermediates/res/merged/debug/values/values.xml
Error:(413) Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
Error:(413) Unexpected end tag string
Error:(413) Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
Error:(413) Unexpected end tag string
/Users/Technologx/Desktop/Android Projects/New/SysVac/app/build/intermediates/res/merged/debug/values-large-v4/values-large-v4.xml
Error:(12) Error retrieving parent for item: No resource found that matches the given name 'Base.Theme.AppCompat.Dialog.FixedSize'.
Error:(13) Error retrieving parent for item: No resource found that matches the given name 'Base.Theme.AppCompat.Light.Dialog.FixedSize'.
Error:(12) Error retrieving parent for item: No resource found that matches the given name 'Base.Theme.AppCompat.Dialog.FixedSize'.
Error:(13) Error retrieving parent for item: No resource found that matches the given name 'Base.Theme.AppCompat.Light.Dialog.FixedSize'.
/Users/Technologx/Desktop/Android Projects/New/SysVac/app/build/intermediates/res/merged/debug/values-v11/values-v11.xml
Error:(66) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat'.
Error:(67) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat.Dialog'.
Error:(68) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat.Light'.
Error:(66) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat'.
Error:(67) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat.Dialog'.
Error:(68) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat.Light'.
/Users/Technologx/Desktop/Android Projects/New/SysVac/app/build/intermediates/res/merged/debug/values-v21/values-v21.xml
Error:(66) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat'.
Error:(140) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat.Light'.
Error:(66) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat'.
Error:(140) Error retrieving parent for item: No resource found that matches the given name 'Base.V7.Theme.AppCompat.Light'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
I'm not sure what I'm needing to do to fix these errors. I'm new to Android coding and was going to use this to help me learn.
Here's the file that it's wanting me to fix.
1: replace %s with %1$s all in your string.xml
2: I suggest You use AndroidStudio rather than eclipse when are you developing Android app. This needs android support library.see here
Hi,I download your source ,and I found some problem:
1、your library source ,gradle file ,applicationID not modified
2、my systemOS is win10,jdk is oracle jdk8。
library's compiledversion and buildToolsVersion maybe needn't modify,but jdk maybe needed.I think so.modified application id and run app successfully

Buck and Android Material theme

I am setting up Buck to speed up the build of an Android app. The app uses the Material Theme through the appcompat-v7:21.0.+ library but Buck cannot find the required resources. Any hints?
Here is the error output:
$ buck build //app/src/main:main
Using buckd.
[-] PROCESSING BUCK FILES...FINISHED 0.4s
[+] BUILDING...2.0s (3/6 JOBS)
|=> IDLE
|=> IDLE
|=> IDLE
|=> //app/src/main:main#aapt_package... 1.5s (running aapt_package[1.5s])
Log:
No Android platform target specified. Using default: Google Inc.:Google APIs:21
app/src/main/res/values/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
app/src/main/res/values/styles.xml:14: error: Error: No resource found that matches the given name: attr 'actionBarSize'.
app/src/main/res/values-v21/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
app/src/main/res/values/styles.xml:23: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
app/src/main/res/values/styles.xml:33: error: Error: No resource found that matches the given name: attr 'actionBarSize'.
app/src/main/res/values/styles.xml:29: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
app/src/main/res/values/styles.xml:38: error: Error: No resource found that matches the given name: attr 'editTextColor'.
app/src/main/res/values-v21/styles.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
app/src/main/res/values-v21/styles.xml:32: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
BUILD FAILED: //app/src/main:main#aapt_package failed with exit code 1:
aapt_package
Download appcompat-aar file and use as dependency in your anroid_resource rule
https://github.com/facebookarchive/AntennaPod/blob/buck/BUCK#L133
https://github.com/facebookarchive/AntennaPod/blob/buck/BUCK#L64

Android Studio won't launch app

I switched from eclipse to android studio. I created a blank app for testing purpose and I was able to launch in properly. However, after having added some simple code I'm no longer to start. The error messages I get are:
Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
or
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
...
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/Users/Tom/Java/Android/android_sdk_4.2/build-tools/19.1.0/aapt package -f --no-crunch -I /Users/Tom/Java/Android/android_sdk_4.2/platforms/android-17/android.jar -M /Users/Tom/Programming/ToyApp/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/Tom/Programming/ToyApp/app/build/intermediates/res/debug -A /Users/Tom/Programming/ToyApp/app/build/intermediates/assets/debug -m -J /Users/Tom/Programming/ToyApp/app/build/generated/source/r/debug -F /Users/Tom/Programming/ToyApp/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package app.beziehungen -0 apk --output-text-symbols /Users/Tom/Programming/ToyApp/app/build/intermediates/symbols/debug
Error Code:
1
Output:
/Users/Tom/Programming/ToyApp/app/build/intermediates/res/debug/values-v21/values.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
/Users/Tom/Programming/ToyApp/app/build/intermediates/res/debug/values-v21/values.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
/Users/Tom/Programming/ToyApp/app/build/intermediates/res/debug/values-v21/values.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
/Users/Tom/Programming/ToyApp/app/build/intermediates/res/debug/values-v21/values.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
....
So what is happening here. The code is defintely correct!
Make sure that you've downloaded the latest extras as well as the Android 5.0 SDK via the SDK-Manager.
And set your compileSdkVersion to 21 in your build.gradle file. You also probably want to change your targetSdkVersion to 21.
android {
//...
compileSdkVersion 21
defaultConfig {
targetSdkVersion 21
}
//...
}

Retrieve Android API 19 Libraries?

I had just updated my app to use Androids API 21 from 19, but the app failed to run as it noted that many of the methods have been deprecated. As there is very little documentation for API 21, given it is so new, I then switched to switch my app back to API 19. However, given the main reference libraries have also been updated: android-support-v4 and android-support-v4-appcompat and therefore logcat lists the error upon running when I attempt to switch my app back to API 19:
Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
C:\Android\android-sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Is there a way to undo the changes of an API update or simply migrate back to a previous API? Or perhaps a location to download those API 19 versions of the libraries?
Source code control (SCC) (such as SVN, Git, Mercurial) is the best way to enable the ability to revert code and libraries to previous versions. Unfortunately, you can only go back in source if you were using SCC at the point you want to revert to.
In your case, downloading archived versions of the library is the best way to solve your problem this time. There are several places you can download these, but Google search of "android support library archive" is your friend, or see this answer.

Can I remove the android-support-v4.jar library?

When you create a project, it comes with this library added by default:
android-support-v4.jar
Can I remove it? What happens if I remove the library? Can the app stop working in some phones?
Can I remove it?
You can try.
What happens if I remove that library?
You will not be able to use anything supplied by it, such as the fragments backport, ViewPager, etc.
Can the app stop working in some phones?
You will get build errors first.
If you're using Eclipse and your project is marked with a red exclamation mark after deleting the android-support-v4 jar, close and restart Eclipse and it should straighten itself out. (Or you might try just closing and reopening the project.)
You can safely remove it if you don't use APIs not available for your current SDK target.
It is a support library. You can read about it here:
Support Library Setup
Support Library
You can safely remove it if you don't use this API.
I just did that. So I get multiple errors in all the projects, like
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
This means that the mentioned resources are not available for my projects anymore.
Then I proceeded to add v7 appcompat, and I got could not get rid of my errors. So I deleted it, and mistakenly deleted the project from the disk as well, so installed the remnants (I guess) of it, and this did not end well either:
[2014-12-07 06:25:16 - android-support-v7-gridlayout] Unable to resolve target 'android-7'
[2014-12-07 06:25:16 - android-support-v7-mediarouter] Unable to resolve target 'android-17'
[2014-12-07 06:25:16 - android-support-v7-palette] Unable to resolve target 'android-7'
[2014-12-07 06:25:17 - android-support-v7-gridlayout] Unable to resolve target 'android-7'
[2014-12-07 06:25:17 - android-support-v7-palette] Unable to resolve target 'android-7'
[2014-12-07 06:25:22 - android-support-v7-mediarouter] Unable to resolve target 'android-17'
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'.
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'.
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'.
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'.
[2014-12-07 06:25:26 - android-support-v7-mediarouter]
So yeah, DON'T DO IT!

Categories

Resources