1. Are you ready for the Galaxy S20? Here is everything we know so far!

Building Android project in Android Studio after import from Eclipse fails

Discussion in 'Android Development' started by halvorsen82, Nov 17, 2014.

  1. halvorsen82

    halvorsen82 Lurker
    Thread Starter

    I have a fully functional android app in Eclipse. I'm trying to import this into Android Studio (AS). I'm currently using AS beta 0.8.14

    When I go to Build->Make Project after importing into AS, I get a lot of errors. It seems when importing, AS removed the old import statements, and added new import ch.boye.xxx instead. These comes from .jar files we have as dependencies.

    Examples from one of my .java files:
    //import org.apache.http.HttpConnection;
    //import org.apache.http.HttpResponse;

    import ch.boye.httpclientandroidlib.HttpConnection;
    import ch.boye.httpclientandroidlib.HttpResponse;

    During build AS fails with the following errors:
    Error:(50, 36) error: package ch.boye.httpclientandroidlib does not exist

    In AS the ch word is red; "Cannot resolve symbol 'ch'".

    The build.gradle (app) has these dependencies:

    dependencies {
    compile 'com.android.support:support-v4:18.0.0'
    compile files('libs/apache-mime4j-core-0.7.2.jar')
    compile files('libs/httpclient-4.2.1.jar')
    compile files('libs/httpclient-cache-4.2.1.jar')
    compile files('libs/httpcore-4.2.1.jar')
    compile files('libs/httpmime-4.2.1.jar')
    compile files('libs/libGoogleAnalytics.jar')
    }

    I couldn't find any related issues regarding this, or how to solve it. I would appreciate any kind of help.
     


    Sushant Khot likes this.
Loading...
Similar Threads - Building Android project
  1. Watsonhank
    Replies:
    0
    Views:
    464
  2. ajaymehta32
    Replies:
    1
    Views:
    268
  3. Jess Holle
    Replies:
    0
    Views:
    1,059
  4. Mikul Patel
    Replies:
    0
    Views:
    405
  5. Mikul Patel
    Replies:
    0
    Views:
    346
  6. Jitesh Verma
    Replies:
    0
    Views:
    473
  7. John Julius Baldia
    Replies:
    0
    Views:
    606
  8. KBU2
    Replies:
    21
    Views:
    1,623
  9. hadyan
    Replies:
    0
    Views:
    349

Share This Page

Loading...