2015-09-05 111 views
8

當我們在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> 

下面是截圖。

Runtime error when import android studio project in eclipse

+0

你可以發佈此活動使用的xml佈局文件嗎? –

+0

上面是我的xml文件 –

+0

你只需升級eclipse版本和sdk即可獲得V7的支持。你去... – Gopal00005

回答

3

項目似乎對有材料設計
你必須從這個鏈接https://github.com/navasmdc/MaterialDesignLibrary添加一個項目叫做材料設計到工作區
後進入你的項目並轉到屬性 - > android- >從那裏添加和選擇材料設計庫

+0

我已經添加MaterialDesignLibrary –

相關問題