简体   繁体   中英

how to import new project in android SDK

I downloaded the project from https://github.com/owncloud/News-Android-App . And going to open this project in Android Studio.Using open project and import project from the file menu but the project is not get build it again again hang the Android Studio.

Its clearly documented in the repo readme file

Download and install:

Open cmd/terminal

Navigate to your workspace

Then type in:

git clone --recursive https://github.com/owncloud/News-Android-App.git for the dev branch:

git clone --recursive https://github.com/owncloud/News-Android-App.git -b dev Run the following script News-Android-App/remove_invalid_languages.sh

Import the Project and start coding!

If you should ever get a Gradle error Configuration with name 'default' not found while building, execute following commands in the projects root directory:

git submodule init git submodule update

UPDATE I tried to import the project myself and found that it requires multiple API and Build tool versions. after installing all of them It takes a significant amount of time to build. Wait for the Android studio to build the project.

I have recorded my steps with windows recorder. Here they are https://drive.google.com/file/d/0B9Juf5kLJb5QdjZGQUExNkJZYnc/view?usp=sharing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM