简体   繁体   中英

Checkout BitBucket Android Studio project in Android Studio

I am trying to pull a new project into Android Studio, the project has been pushed by a fellow person using Android Studio, Android Studio has not made this easy at all. I have done the following.

Remote Repository: 在此处输入图片说明

Start of checkout(I click on clone): 在此处输入图片说明

After it clones, the files:

在此处输入图片说明在此处输入图片说明

This is where I am unsure what I am supposed to do, I try importing:

在此处输入图片说明

Am I supposed to import fela or app ?

If I choose app it states this:

在此处输入图片说明

The file structure is not the same as my other projects, as shown here:

在此处输入图片说明

This also complains:

在此处输入图片说明

If I choose fela it states:

在此处输入图片说明

To put salt in the wound, I press cancel, and it continues anyway.

How should I import this project?

在结帐后导入项目时,请选择build.gradle而不是结帐项目目录的根目录。

while importing project don't select app or fela just select build.gradle which is inside app folder. and it will ask for gradle package. please allow it to be downloaded once after that you can successfully use your project.

Ask if anything needed? Hope it helps !!

From the structure there it seems like you are missing a build.gradle file in the projects root folder "fela". At least on all projects I've done there has been a build.gradle in the root and one in the app directory. You might want to check with the person that pushed it if they included the roots build.gradle file. I hope this helps.

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