我试图找到并导入makeramen的图书馆,因为我不能copile我的项目,收到这些错误:如何导入库在ADT项目为Eclipse
错误消息:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'border_color' in package 'myapp'
- error: No resource identifier found for attribute 'mutate_background' in package 'myapp'
- error: No resource identifier found for attribute 'border_width' in package 'myapp'
- error: No resource identifier found for attribute 'oval' in package 'myapp'
我的XML:
<com.makeramen.RoundedImageView xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/mapImage"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/list_map_bar"
android:padding="12dp"
android:scaleType="fitCenter"
android:src="@drawable/list_world"
app:border_color="@color/xroads_grey"
app:border_width="2dp"
app:mutate_background="true"
app:oval="true" />
我不知道如何解决这个问题,运行& copile的Android项目。 任何人都可以帮助我吗?
非常感谢!
更新2
我收到被导入到ADT的Android项目 - Eclipse的。有缺少一些库,并请检查下面的完整结构的项目形象:
的Android项目(对不起,我可以上传图像,因为计算器不要让我上载的任何图像):
LoginActivity
-Android 4.3
-Referenced Libraries
-rundedimageview-1.5.0-sources.jar
-src
-gen [Generated Java Files]
-assets
-bin
-libs
-res
-AndroidManifest.xml
-ic_launcher-we.png
-lint.xml
-project.properties
下的文件夹/ res/layout在我之前提到的关于缺少库和依赖关系的文件上有一些错误消息。所以我已经将RoundedImageView JAR添加到项目中,但没有任何更改。
有什么想法? 让我知道是否有人需要关于任何文件的更多信息o错误消息。 它缺少build.gradle文件,这是正常的或我可以创建?
更新3:
我改变了代码为纳迪姆·伊克巴勒推荐,但错误依然存在。我可以在代码中运行带有这些错误的应用程序。请帮忙!
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res/io.cran.crossroads"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<FrameLayout
android:layout_width="100dp"
android:layout_height="100dp"
android:id="@+id/map"
android:layout_alignBottom="@+id/avatar"
android:layout_toRightOf="@id/imageBarLeft">
<com.makeramen.RoundedImageView
android:id="@+id/mapImage"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/list_map_bar"
android:padding="12dp"
android:scaleType="fitCenter"
android:src="@drawable/list_world"
app:border_color="@color/xroads_grey"
app:border_width="2dp"
app:mutate_background="true"
app:oval="true" />
</FrameLayout>
您是使用Eclipse IDE还是Android Studio? – behelit 2014-12-03 04:18:55
我正在使用ADT - Eclipse。 – maceguo 2014-12-04 02:33:37