Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import a Project from bitbucket repository to Android Studio?

I have repository in BitBucket while cloning project

enter image description here

If I select "Ïmport Gradle project"

enter image description here

On clicking "OK" , it start building project , then gives error

enter image description here

If I select "Configure" to configure android project it build project but it didn't run .

How to resolve this error ?

like image 960
Ujjawal Avatar asked Dec 08 '15 06:12

Ujjawal


People also ask

How do I copy a project from Bitbucket to Android studio?

You can try below steps to clone a bitbucket repo: VCS -> Git -> clone -> paste bitbucket URL repo -> clone. It can clone successfully. Save this answer.


2 Answers

launch bitbucket.org, login to your account, select the repo which you want to import. select HTTPS and copy the link.

launch Android studio. select 'Check out the project from Version Control' paste the link, fill in other information as asked and confirm.

this will clone your bitbucket repo in the android studio.

like image 194
KawaiKx Avatar answered Sep 18 '22 00:09

KawaiKx


BitBucket is a GitHUB based site.

You simply need to clone the repo you need to your local pc. Open that repo (project) in Android Studio, and Android Studio will give you the option to enable “VCS” (This is Version Control System). It will automatically sync with your repo, and list all your branches and so on.

You don't need to do an import, if it is already an Android Studio project.

For your error, try these as reference:

Volley might be giving you an issue (File Structure stuff)

If you have modules as part of the repo

like image 37
TejjD Avatar answered Sep 18 '22 00:09

TejjD