Android Studio Imports Project FAQs on GitHub (as an example of an open source project with a picture carousel)

Source: Internet
Author: User

GitHub is no doubt a treasure for developers, but it's not easy to use it, it's a problem to import open source projects with Android Studio, and today I'll take a picture Carousel project on GitHub as an example to solve common problems in the import process.

1. Download the project compression package
2. To modify the Gradle version of an open source project, because Android Studio is automatically built with Gradle, and the Gradle version of each project does not conform to the resulting compilation exception, the process is as follows

Open your own local build project under the Build.gradle file and copy it all.

Then use Notepad or other software to open the Build.gradle file under the Open source project, paste and save all

3. Import open source projects, File---> Import project Note instead of selecting the entire folder, find the Build.gradle file inside the folder, click OK

4. Resolve the first exception

Exception display:

Workaround: Open the Build.gradle file under the folder shown in the arrow and change the Runproguard false to minifyenabled false

Cause of the problem:

Open the directory, you will find your gradle version, I use 2.2.1, official documents said, Gradle version 2.0.0, Unproguard will be changed to minifyenabled

5: Resolve the second exception

Exception display:

Problem solving: Open the directory under the Xxx.iml file, the right red box in the code to delete

6: Resolve the third exception:

Exception display: Class file Display J, (in fact, Android Studio does not recognize it)

Problem Resolution: Action, select an SDK version, and then rebuild Project

7: Exception resolution, run, the world is so beautiful

Android Studio Imports Project FAQs on GitHub (as an example of an open source project with a picture carousel)

Related Article

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.