5

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 ?

Ujjawal
  • 99
  • 1
  • 1
  • 9

4 Answers4

5

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.

Community
  • 1
  • 1
KawaiKx
  • 9,558
  • 19
  • 72
  • 111
2

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

Community
  • 1
  • 1
TejjD
  • 2,571
  • 1
  • 17
  • 37
  • I cloned the repo in my local system after this it is giving error 'Error:Configuration with name 'default' not found.' – Ujjawal Dec 08 '15 at 06:58
  • Refer to my answer, I have provided 2 links that might assist with that. Also, try not to do the "Import" as you say. Rather clone the repo, and open the project through android studio as you would any project. Then Gradle Sync – TejjD Dec 08 '15 at 07:09
  • Yes I am not importing project i just opened and done all steps you told from scratch but still it persist unable to find why :/ – Ujjawal Dec 08 '15 at 07:29
0

Refer to this answer

You need to make sure that each submodule in your project has its own build.gradle file. The name 'default' happens because your outer build.gradle is trying to build a project that doesn't know how to build itself, thus it is given the name 'default.' Try doing that and see what happens.

Community
  • 1
  • 1
Mohsin Raza
  • 488
  • 1
  • 6
  • 12
0

The owner of the project should give you the access to one. Then in android studio go to VSC tab in most top bar and select
VCS --> git --> clone..
Then in dialog popup in the first editbox past the 'httpsed' url and press "Clone" Then wait untill project is clonned

CodeToLife
  • 3,672
  • 2
  • 41
  • 29