Android Studio Import Eclipse Project, and some bug fixes

Source: Internet
Author: User

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
    1. dependencies {
    2. Compile Filetree (dir: ' Libs ', include: [' *.jar '])
    3. Compile ' com.android.support:appcompat-v7:22.2.1 '
    4. Compile ' com.android.support:palette-v7:22.2.0 '
    5. }



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.