Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import android studio project in eclipse which use library?

When we import android studio project in eclipse it shows following error.

Android studio project contains project and library when we import all compile time error is solved but when we run project from eclipse it shows error.

project link = "https://github.com/glomadrian/material-code-input" And bellow is my xml layout file.

<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>

Below is the screenshot.

Runtime error when import android studio project in eclipse

like image 392
Ganpat Kaliya Avatar asked Sep 05 '15 08:09

Ganpat Kaliya


People also ask

What is library module in Android Studio?

Library module In the Create New Module window, Android Studio offers the following library modules: Android Library: This type of library can contain all file types supported in an Android project, including source code, resources, and manifest files.

Can we import module from source in Android Studio?

Select the source directory of the Module you want to import and click Finish. Open Project Structure Dialog (You can open the PSD by selecting File > Project Structure) and from the left panel click on Dependencies. Select the module from the Module(Middle) section In which you want to add module dependency.


1 Answers

your project seem's to have material design
you have to add a project called material design from this link https://github.com/navasmdc/MaterialDesignLibrary into your workspace
after that go into your project and go to properties->android->add and choose material design library from there

like image 79
Mahdi Javaheri Avatar answered Oct 10 '22 15:10

Mahdi Javaheri