问题
I have an Android app project in eclipse that references to 3 libs+ some jar files and I would like to migrate all to Android studio.
First, I export "generate Gradle build files" (app) and succeed import in Android Studio.
I tried to create root folder manualy but the Imports in the App "cannot resolve symbol .."
How do I migrate the rest libs and jars and implement them?
回答1:
If you want to move the rest of your libs and jars to Android studio, you can do it in three different ways. Please read this link https://stackoverflow.com/a/35369267/5475941. In this post I explained how to import your JAR files in Android studio and I explained all possible ways step by step with screenshots. I hope it helps.
回答2:
No need to export your project in android studio manage itself ,
- open android studio and select import project (eclipse adt etc)
- browse to your project root directory and pick your main project not library or dependent project .
- start wizard to import and wait to complete gradle build.
来源:https://stackoverflow.com/questions/35450972/migrate-eclipse-app-and-libs-to-android-studio