AAPT style attribute not found - android

I am using android studio version 4.1.3 and gradle version 6.8.3 . My target sdk version for the project is API 26.
After clicking on sync the project, the result seems have no problem but after clicking on run app, I have an error which says,
gradle-6.8.3\caches\transforms-3\71de35e86c45a332199eb23f9129d32f\transformed\material-1.4.0\res\values\values.xml:1316:-1327:11: AAPT: error: style attribute 'android:attr/dialogCornerRadius' not found
I don't know what should I do?
Just tell me if you need more details for better diagnosis.
Thanks.

Related

gradle not coordinated with the project

I am using android studio version 4.1.3 and gradle version 6.8.3 . My target sdk version for the project is API 26.
After clicking on sync the project, the result seems have no problem but after clicking on run app, I have some errors. One of them says,
gradle-6.8.3\caches\transforms-3\71de35e86c45a332199eb23f9129d32f\transformed\material-1.4.0\res\values\values.xml:1316:-1327:11: AAPT: error: style attribute 'android:attr/dialogCornerRadius' not found
I have seen the Error:(9, 5) error: resource android:attr/dialogCornerRadius not found
But again the problem is not solved
I don't know what should I do?

My project crash after implementing admob

I am running android 3.5. my project was running smoothly, but crash after i implement admob in the code and it is giving me the error bellow:
C:\Users\HP\.gradle\caches\transforms-2\files-2.1\c304f603f74183b8376179f99c52c5ba\play-services-ads-lite-19.6.0\AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest>.
Please how do I solve?
As in this answer: I the error "unexpected element <queries> found in <manifest>", how to fix it?
While you are using the latest Admob SDK you are using old versions of build.gradle and Android Studio! You have to update!
Use newer version of gradle,like so:
project/android
classpath("com.android.tools.build:gradle:3.5.0")
current setting:
classpath("com.android.tools.build:gradle:3.5.4")

No resource found that matches the given name (at 'android:src' with value '#drawable/abc_ic_menu_moreoverflow_mtrl_alpha')

I'm updating my project to API level 25 (Android 7.1.1).
I've updated the build.gradle file:
gradle plugin version
support library versions
targetSdkVersion
compileSdkVersion
When I sync the project, I get the following error:
Error:(2752, 34) No resource found that matches the given name (at android:src with value #drawable/abc_ic_menu_moreoverflow_mtrl_alpha).
The error mentions the root of the problem as android:src.
The abc_ic_menu_moreoverflow_mtrl_alpha is not used in my project. Perhaps it is being used in some library ... ??
What is the meaning of this, and how do I resolve this issue?
Does this require updating some other components such as the build tools or the Google repository?
I'm using Android Studio 2.3.2 and Gradle 3.3 if that helps.
This resource has renamed. Change this
abc_ic_menu_moreoverflow_mtrl_alpha
TO
abc_ic_menu_overflow_material Solve the issue.

android studio error: Failed to find target with hash string 'android-24'

I just downloaded android studio and it wouldn't download I keep getting
Error: Failed to find target with hash string 'android-24'.
please help me, if you have an idea because I cannot do anything and its annoying.
click 'install missing platforms'
or
modify the build.gradle file and change buildToolsVersion to whatever version you have.
In build.gradle file change build tools version to the latest SDK version numbers.

New errors after installation of fabric plugin in eclipse android

I use eclipse LUNA for android development. I installed Fabric plugin to add crashanalytics today and suddenly I am seeing some error which I am not able to identify.
The project shows red mark for errors but none of the files have the same error mark
And when I try to run/build the project I get the following error
An internal error occurred during: "Running GTM diagnose".
com.android.tools.lint.detector.api.XmlContext: method (Lcom/android/tools/lint/client/api/LintDriver;Lcom/android/tools/lint/detector/api/Project;Lcom/android/tools/lint/detector/api/Project;Ljava/io/File;Lcom/android/resources/ResourceFolderType;)V not found
Also i am seeing this error repeatedly in the console
[2014-12-05 08:56:41 - com-crashlytics-sdk-android_answers] Unable to resolve target 'android-21'
[2014-12-05 08:56:41 - com-crashlytics-sdk-android_crashlytics] Unable to resolve target 'android-21'
This is my first android project so sorry if this is a noob question. Any help would be appreciated
After installing SDK version 21, you will have this issue:
You are building your app with a sdkTarget defined in your manifest with a value lower than 21.
Your choices are:
a) upgrade your project to use: android:targetSdkVersion="21"
OR
b) change each crashlytics kit's manifest's targetSdkVersion to match your project

Categories

Resources