当我们在eclipse中导入android studio项目时,它显示以下错误。如何导入eclipse中使用库的android studio项目?
Android工作室项目包含项目和库,当我们导入所有编译时错误已解决,但是当我们从eclipse运行项目时它显示错误。
项目链接= “https://github.com/glomadrian/material-code-input” 和波纹管是我的XML布局文件。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dp"
android:background="#FFF"
>
<com.github.glomadrian.codeinputlib.CodeInput
android:layout_marginTop="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:hint_text="Pairing code"
android:id="@+id/pairing"
/>
<com.github.glomadrian.codeinputlib.CodeInput
android:layout_marginTop="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:underline_color="#457ad1"
app:underline_selected_color="#9e1ace"
app:text_color="#b12eff"
app:hint_color="#77ce9d"
app:hint_text="Pin code"
app:codes="4"
/>
<com.github.glomadrian.codeinputlib.CodeInput
android:layout_marginTop="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:underline_color="#d19385"
app:underline_selected_color="#ce3a47"
app:text_color="#5c282c"
app:hint_color="#ce1087"
app:hint_text="Cheat code"
app:codes="8"
/>
<com.github.glomadrian.codeinputlib.CodeInput
android:layout_marginTop="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:underline_color="#03A9F4"
app:underline_selected_color="#3F51B5"
app:text_color="#212121"
app:hint_color="#03A9F4"
app:hint_text="Hash code"
app:codes="10"
/>
</LinearLayout>
下面是截图。
你可以发布此活动使用的xml布局文件吗? –
上面是我的xml文件 –
你只需升级eclipse版本和sdk即可获得V7的支持。你去... – Gopal00005