The steps for Android studio to import Eclipse-developed projects are as follows
If you have already opened Android studio, select the project you have opened, close and then import
Start Import
The import is complete.
2. Project Error
Error: (134, 3) wrong: symbol not found
Symbol: Variable Palette
Location: Class Mainactivity
Error: (18, 35) BUG: Package android.support.v7.graphics does not exist
Error: (134, 44) BUG: Package palette does not exist
Open the app's Build.gradle
Add compile ' com.android.support:palette-v7:22.2.0 ' to dependencies {}
Create one without dependencies {}. As follows.
[HTML]View Plaincopy
- dependencies {
- Compile Filetree (dir: ' Libs ', include: [' *.jar '])
- Compile ' com.android.support:appcompat-v7:22.2.1 '
- Compile ' com.android.support:palette-v7:22.2.0 '
- }
3, import project times wrong.
There is unrecoverable errors which must be corrected first
Open Project for Eclipse
Find Project.Properties
Right, open it with Notepad
Delete android.library.reference.1=. /android-support-v7-appcompat
Then re-import the line.
Android Studio Import Eclipse Project, and some bug fixes