error no resource identifier found for attribute 'indeterminateTint' in package 'android'

原创 2016年08月30日 15:03:57

 


I'm trying to create an XML ProgressBar.
When i add the attributes android:indeterminateTint and android:progressBackgroundTint to the ProgressBar i'm getting the error error no resource identifier found for attribute 'indeterminateTint' in package 'android' when i compile the project.
I'm using Eclipse if that maters.

The code:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background"
    android:gravity="center" >

    <ProgressBar
        android:id="@+id/loader_animation"
        android:layout_width="60dp"
        android:layout_height="60dp"
        android:indeterminate="true"
        android:indeterminateTint="#ffffff"
        android:progressBackgroundTint="#000000" />

</RelativeLayout>

What am i doing wrong?




That attribute was added in API 21. Is your project targeting API 21? – Christian Göllner Nov 18 '14 at 3:34
 
@ChristianGöllner Yes it is – Presen Nov 18 '14 at 3:37
 
then I would try the usual Eclipse stuff. Build -> Clean -> All projects. Can't remember anything else that could be the problem. – Christian Göllner Nov 18 '14 at 3:39
2  
Also, don't forget that you have to target API 21 in AndroidManifest.xml and also in the project properties. – Christian Göllner Nov 18 '14 at 3:40
 
What do you mean by project properties? – Presen Nov 18 '14 at 3:53


遇到类似问题:

 ogsdklib/res/layout/personal_info.xml:188: error: No resource identifier found for attribute 'buttonTint' in package 'android' 

结合上面的问题及答复,将androidAPI选择5.0就没问题了。


error: No resource identifier found for attribute 'widgetCategory' in package 'android'

最近在做app widget的东西,在网上找到一些开源的项目后,发现有的项目编译不通过,出现 “error: No resource identifier found for attribute 'w...

上传ipa时遭遇错误:ERROR ITMS - 90167 No. app bundles found in the package

问题描述 升级了macOS Sierra (10.12) 和XCode8以后,使用Application Loader上传IPA到App Store时报了个奇怪的错误: ERROR ITMS ...

Error retrieving parent for item: No resource found that matches the given name..全面解决方案

出现错误: [2015-02-13 13:47:05 - GodHand2] D:\Workspace\godhand\appcompat_v7\res\values-v21\styles_base...

Android Error retrieving parent for item: No resource found that matches the given name '...'

记录一下,以前没有遇到过这个问题,这个问题困扰我好长时间。我起初用Android Studio-1.2版本创建的项目api19编译的,后来换成Android studio-1.4版本后加载这个项目就一...

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom...

error:No resource found that matches the given name 'Theme.AppCompat.Light'

一、stsckoverflow http://stackoverflow.com/questions/17870881/cant-find-theme-appcompat-light-for-n...

解决错误ERROR: No suitable Java found. In order to properly use the Android Developer Tools,…

Failed to convert path to a short DOS path: C:\Windows\system32\java.exe 很多人在把ADT更新到ADT17以后...
  • jdsjlzx
  • jdsjlzx
  • 2012年05月26日 16:30
  • 4778

Linux学习30_configure: error: no acceptable C compiler found in $PATH 问题解决

安装Python2.*时,遇到问题,提示configure: error: no acceptable C compiler found in $PATH, 然后找到以下解决方法: ...

Error: debugging information for 'myproject.exe' cannot be found or does not match. No symbols loaded.

今天调试一C++程序,按下F5,老是弹出一对话框显示信息:debugging information for 'myproject.exe' cannot be found or does not m...

configure: error: no acceptable C compiler found in $PATH

CentOS 6.5下升级glibc到glibc-2.14时,执行configure,提示如下错误:# ./configure checking build system type... x86_6...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:error no resource identifier found for attribute 'indeterminateTint' in package 'android'
举报原因:
原因补充:

(最多只允许输入30个字)