Android Studio and Bitbucket plugin - android

Suddenly when I try to checkout a project from BitBucket i get an error msg saying:
NoClassDefFoundError: com/intellij/ide/ui/ListCellRendererWrapper: com/intellij/ide/ui/ListCellRendererWrapper
NoClassDefFoundError: org/bitbucket/connectors/jetbrains/ui/BitbucketCloneProjectPanel$1: org/bitbucket/connectors/jetbrains/ui/BitbucketCloneProjectPanel$1
I tried to reinstall the plugin but no luck. Anyone please?

I found the solution here:
https://bitbucket.org/atlassian/jetbrains-bitbucket-connector/issue/56/solved-plugin-does-not-work-well-with-idea
I just downloaded the version in this thread answer and updated it in Studio.
Edit:
Download the latest one from here it works with all the versions of Android Studio, https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads/
//Akbar Sha Ebrahim
Edit 2:
Unzip the file and then go to preferences (Settings on Windows), select Plugins header on the left, and choose "Install plugin from disk..." button on the right. Browse and select the bitbucket.jar file
//Tommie C.

For Android studio 13 it's failing with bitbucket plugin, try to install plugin https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads/jetbrains-bitbucket-connector_IC-133.193.zip and reinstall the bitbucket plugin.

As a prerequisite, create an account and a project in bitbucket
Then:
(1) Download latest plugin from: https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads/ and unzip it
(2) Open Android Studio --> New --> Plugin .--> Install Plugin from disk --> Navigate to bitbucket.jar inside your unzipped directory from (1)
(3) Restart android studio
(4) Go to tab New --> Project from Version Control --> Bitbucket
It will prompt for the bitbucket login
(5) Select your bitbucket repository where you want your project to be version controlled.

Related

Android studio and 'trust project' problem

When I open any project or create a new project, ide shows the trust project option but it's not working
and Gradle doesn't sync, and trust project sync still available on top of the page
You need to clean up the `trusted-paths.xml`
It's located in the configuration directory of Android Studio (for MacOS)
~/Library/Application Support/Google/AndroidStudio2021.2/options
Quit Android Studio
Find the file trusted-paths.xml and clean up and save it.
Open Android Studio and your project

Android Studio 2.0 fails to build sample android project out of the box

I just download loaded the a brand new stable version of Android Studio.
It installs OK and ask what sort of project you'd like to open. I figured I'd open a sample project. I selected the first one,"ActionBarCompat-ShareActionProvider".
Android Studio fails and tells me to look in the log file. I see that this is the error
.project.GradleProjectResolver - Gradle project resolve error
org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.8-all.zip
I am able to download https://services.gradle.org/distributions/gradle-2.8-all.zip with my browser. What gives?
Try updating your gradle distribution URL to point to version 2.10. There are a couple ways to do this.
a) In your gradle-wrapper.properties file, change the following line
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
to
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
b) Go to Android Studio > Preferences > Build, Execution, Deployment > Build Tools > Gradle and change your "Gradle home" directory to /Applications/Android Studio.app/Contents/gradle/gradle-2.10 or just select "Use default gradle wrapper".
when i click help> check for update> it will redirect
http://tools.android.com/download/studio/canary/latest/ << this web url. but my friends able to update without redirecting any web url. why?

How to import googlesamples/android-UniversalMusicPlayer to my android studio

I'm a newer in Android and i wish to import this project to my android studio.
How to do it?
Read this full document. It will explain in details step by step whats need to be done.
Step 1: Install git for Windows
It can be downloaded for free from git-scm.com.
Most settings available during the installation process should be compatible with Android studio. Just choose the settings you deem the most appropriate.
Step 2: Link git executable to Android Studio
Open Android Studio and got to Settings. In the Setting dialog open the page Version Control / Git. Here define the path to the git executable you have just installed.
Step 3: Get the Path to your Repository from Github
Go to the GitHub page and get the HTTPs path to your repository.
For instance: https://github.com/mxro/WallOfTheWiseAndroid.git
Step 4: Import the Git project to Android Studio
Go to Android Studio and go to Menu / VCS / Checkout from Version Control / Git
Fill in the required information: username, password, url etc
Now the project should be imported to Android Studio and you should be able to commit and push future changes back to GitHub.
In the newest version of android studio (The 1.3 beta) you can go to File -> import Sample
Then you can select the project you wanted. It's under the getting started heading.

Android Studio refuses to accept that Google Repository is installed

I am trying to get AdMob running. But for some strange reason, I can not get Android Studio to accept that the Google Repository is installed.
Thing is, it is installed in the SDK manager. And reinstalled multiple times now. Project Structure SDK path is the same as in Android SDK Manager.
When I mouse over the compile 'com.google.android.gms:play-services:6.+' line in my build.gradle, I get this tooltip:
"Dependency on Play Services, but the SDK installation does not have the "Extras > Google Repository" installed. Open the SDK manager and install it"
When I try to compile, this error:
Error:Failed to resolve: com.google.android.gms:play-services:6.+
With that error comes a link to install the Repository, which I used multiple times now. Android Studio does not care. Help.
edit: When I use a fresh empty project, it works, and Android Studio finds the Repository. No clue what is going on here.
I was suffering with the same problem and finally found a simple solution (I'm using Android Studio 1.5.1 on MacOS):
Go to File --> Project Structure
On the left hand of the opened window, under Developer Services, select Ads
Check the checkbox next to AdMod. Your window should look like this:
Click OK
This will add the required dependency to the Android's build.gradle, and sync Gradle.
When the sync is done, and just to make sure, clean and rebuild your project:
Build --> Clean Project
Build --> Rebuild Project
That's it! I hope this helps.

Android studio offline installation

My windows XP development environment has no internet access. So I need to install Android Studio without internet connection. (Formerly I used 1-2 months IntelliJ IDEA 12 for android development)
The steps I made:
I downloaded studio 0.2.x installation files from developer site (http://developer.android.com/sdk/installing/studio.html).
I downloaded JDK and installed.
I already installed Android SDK package installer, downloaded API files and installed that files by using this package installer. (http://siddharthbarman.com/apd/)
I tried to create new project. I get "gradle" error. It seems like gradle is bundled inside studio but because of error exists, I downloaded gradle-1.6.zip from their website. (http://www.gradle.org/downloads) I added gradle\bin to my PATH environment variable.
Then I still get new errors that maven is missing. It seems like I need to download maven but I even don't know the version.
Can you write step by step that how many more programs / libraries should I download to get Hello world from Android studio and Android emulator ?
Note: I download files from a machine that has internet connection, copy them to flash disk and move to my development machine.
There is no need to download Maven. Android Studio only uses Gradle. However, the first time you build your project, you'd need to have a internet connection so that the Android Gradle plugin and all its dependencies are downloaded and cached on your local disk. With an active internet connection, do:
$ cd /path/to/project
$ /path/to/gradle assembleDebug
Once that works, then you shouldn't need an internet connection.
Android Studio will eventually support such an offline mode.
Android Studio 0.4.0 now includes support for offline:
http://tools.android.com/recent/androidstudio040released
"You can now open the Compiler > Gradle options and enable Offline mode, which will tell Gradle to ignore update-to-date checks"
It doesn't work offline for creating new projects, so this is what I do and it works 100% offline!
Download Gradle and setup Environment variables
Create/Load project in Eclipse
File > Export
Select 'Generate Gradle build files'
Select project
Open AndroidStudio or IntelliJ13
Import project
Select 'Create project from existing sources'
Done!
But I preferred to use 'android create project' command, then setup 'build.gradle' file manually.

Categories

Resources