Android Studio don't run app after upgrade to 1.5 - android-studio

I just upgraded Android Studio to 1.5 release and I try (after gradle build) to run App but the run procedure is skipped and the device chooser immediately appears. No apk file issued. Any suggestion? Is a bug?

http://tools.android.com/recent/androidstudio15preview2available
We've just released Android Studio 1.5 Preview 2 to the Canary
channel.
In 1.5 we've reworked the build+deploy flow such that instead of first
building with Gradle and then popping up the "choose a device" dialog,
we now immediately ask for a device to push the APK to. Some users
were using Run + Cancel to build an APK; we now added a separate
"Build APK" action to the Build menu for that purpose.
Hi. It is not a bug, it is a feature. Personaly I hate this change and hope I can enable this optionaly.
Good luck!

Related

How to enable build speed window in android studio?

I just came to know that in the latest Android Studio 4.0, there is a Build Speed Window which will help to understand and diagnose issues with the build process. But somehow, that Build Speed Window is not appearing after the build is successful. Does anyone know how to enable the build speed window?
Android Studio 4.0 Canary 3
Android Gradle plugin 4.0.0-alpha03 and higher
Step 1: Build > Make Project from the menu bar
Step 2: Select View > Tool Windows > Build from the menu bar.
After Android Studio finishes building your project, Open the Build Speed window in one of the following ways:
Step 3: Click the Build Speed tab. or Click the link in the right side of the Build Output window.
If you are using android studio 4.0 beta channel, build speed is known as build analyzer.
refer this documentation.
I hope this helps.
#josepraveen answers is the correct one. I just want to add that you should also make sure that you have com.android.tools.build:gradle:4.0.0 under dependencies in the build.gradle of the parent
Then do the step 1 etc

Could not download gradle.jar (com.android.tools.build:gradle:3.3.2)

I got this error from my android studio 3.2 when am trying to build my project. Am new to android and i have been trying to set the studio up but i keep getting this error - Could not download gradle.jar (com.android.tools.build:gradle:3.3.2): No cached version available for offline mode
someone should help me out and fix this.
You have not finished setting up your Android studio. Make sure you are connected to the internet then press Try Again or Restart your android or Press the sync again button on the top left corner of android studio. Gradle will be downloaded
It is important to make sure that your android studio is not in offline mode. To do this go o File->Settings the search Offline in the settings search box. Choose gradle and make sure the Offline check box is not Checked.

Download of android studio 3 RC 1

I've decided to upload my alfa app to google play .....
After harsh strugle with it I passed an automatic test.
And failed in all mobiles .... a simple anko toast was the culprit I remove it
Then I noticed that my 1.2 MB app turned into a mamooth of 18 MB
So I turn to enable minify ... shrink resources and so one in gradle
The next trimed version once upload proveed definitelly slim, in fact allmost everything was removed, so nothing worked.
Whent back to previous one and on the next day I've recived a notification on my android-studio 3 telling me that the Release Candidate 1 was available, read release notes and found
Issue #65519025: Missing classes in APK
Issue #65829618: Incremental builds fail when enabling resource shrinking
apparently I was saved, but no when I click the download button I get a link to my current version, mistakes are everywhere .....
try it
https://developer.android.com/studio/archive.html?hl=en
I found it using this link.
Android Studio cant be updated via delta update. You will need to download entire build from this link
You Can Download Android Studio Preview from following links
Android Studio Preview: Link 1
Android Studio Archives: Link 2
Android Studio 3.0 RC 1
Windows:
Windows (64-bit)
Windows (32-bit)
Linux
Mac
The download link I speculated
windows: https://dl.google.com/dl/android/studio/ide-zips/3.0.0.16/android-studio-ide-171.4392136-windows.zip
mac:https://dl.google.com/dl/android/studio/ide-zips/3.0.0.16/android-studio-ide-171.4392136-mac.zip

android studio stuck on Gradle sync started . GCM google cloud messaging sync with its dependencies and plugins

I try to use GCM on my app but when I start step by step as the steps on
https://developers.google.com/cloud-messaging/android/client
I have added the dependencies and plugins as required
than I press sync on android studio
but until now it take more than one and half hour form
Gradle sync started
Gradle:Download https://jcenter.bintray.com/.............
is it normal or some error happened
if it is ok how long it will take ?
if it is not normal what should I do ?
now it stopped and wa
Warning:Gradle version 2.10 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in D:\android\STRONTAXI\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip
my android studio rework fine just
when I
delete the Gradle
from the Build menu I choose rebuild project

Android Studio Instant Run not working

I am trying to get Instant Run to work in Android Studio. I have A.S. 2.0 Preview 4 installed, and my Instant Run is enabled like this:
Now, I am experimenting with this in the Topeka sample app from Google (https://github.com/googlesamples/android-topeka). So, I am placing a bunch of Toasts in CategorySelectionActivity and CategorySelectionFragment, hoping that they can be instantaneously changed with Instant Run. But every time I hit the Instant Run button in A.S., it completely shuts down the app and re-installs it. It does not resume from the same activity I was on previously (as expected), NOR is it displaying the toast message like
Applied code changes without Activity restart
Does anyone know how to get Instant Run to work properly?
Thanks,
Igor
Please update Android Studio to Android Studio 2.0 Preview 8.Android Studio 2.0 Preview 8 to the canary channel, as well as a new version of the Gradle plugin: 2.0.0-alpha8. You'll want to update both; instant run in particular is only enabled when using the latest versions of both:
The solution to this problem is to update Android Studio to 2.0 Preview 8, gradle wrapper to:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
and to use this gradle dependency:
classpath 'com.android.tools.build:gradle:2.0.0-alpha8'
Instant run works now on my Mac!

Resources