halvorsen82
Lurker
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.
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 existIn 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.