Android Studio taking too long to build - android

Android Studio
I am using Stable version Android Studio 2.1. But it is taking very long to build. Currently I have used gradle 2.10 and that too a local version of it. I am using gradle plugin 2.0.0 right now and using jdk 1.8 along with all the options required for Instant run enabled on Studio settings. I even tried with offline options and tried using gradle wrapper also.
My studio is taking very much time to build more than half a hour many a times. Can some body help me out in speeding it up. Am I missing something or using a wrong gradle plugin for Studio 2.1.

Related

How to get gradl sync going again on Android Studio 3.1

After having this issue on Mac OSX, I reinstalled everything for Android Studio. (Studio itself, SDK's), ... Gradle Sync just does not work anymore. Anybody experiences this also? JAVA SDK Installed is 1.8.0_161.
"Uninitialized object exists on backward branch 70" on gradl sync (see screenshot)
error
android studio version
Bintray was experiencing an outage this morning. This is where a lot of Gradle's Android dependencies are hosted, so it was most likely affecting your Gradle Sync Process. Keep an eye on the status page here, and try again if it turns green. http://status.bintray.com/
This is a bug of JDK old versions. Go to the project structure and change your project to latest JDK version like 1.80_72 or later
After upgrading my Android Studio (on Ubuntu 14.04) to version 3.1.4 I also experienced a build problem:
Gradle sync failed: Uninitialized object exists on backward branch 70
Exception details: error in bytecode
Found out it was due to an old JDK version I have installed locally.
Instead of updating my local JDK I changed the project settings to use the embedded JDK, which, by the way, Android Studio says is the recommended option, and that solved the problem.

Android Studio and Kotlin - not loading changes

To load a fresh APK I am required to clean every time before building. It is like the compiler isn't noticing my code changes.
Here are my configurations:
My project is entirely in Kotlin
Kotlin version 1.1.60
Gradle version 4.4
Android Build Tools version 3.1.0-alpha04
Android Studio 3.0 (stable)
Java 8
Databinding is enabled
Using Kapt
Instant run is disabled
I haven't confirmed if Java code would show the same problems or not.
Has anyone seen this and found a way around it?

Project Doesn't Build in Android Studio 2.3.1 at all

Yesterday I updated my Android Studio version from 2.3 to 2.3.1 and today when I tried to create a New Project this familiar screen should disappear after sometime but it didn't disappeared after 30 minutes of waiting. Anyhow I managed to close android studio by Task Manager and started Android Studio again and created a new project again and the same thing happened again.
Although when I open my previous projects again they are working fine but the problem is with the new project creation only. I am having a good working internet connection along with the latest version of gradle 3.4.1
Any idea why this would be happening?
How to resolve this?
I had this "problem" with android studio but after looking here and there I found out that when I update gradle version for my project, for example from 2.2 to 2.2.1, if I do not have that gradle version already android studio tries to download gradle distribution for that version to build the project and since I have poor internet connection, it was the download which was taking time.
Maybe your android studio is downloading the gradle too and it takes time.

why can't I use my android studio 2.3 Instant run features?

My AS is 2.3 official version
and I already open the Instan run on the settings
but it can't use,and the lightning symbol is always not light,just like this
I don't why this is,who has other ideas?
Make sure the Android Gradle plugin is version 2.3.0 and Gradle is version 3.3.
Else it wont work. Android studio should tell you that by default. Normally when you open your project or after a clean build.

gradle sync taking too much time android studio

I have imported a Android Studio 2.1 project to Android Studio 2.2.3. But the gradle sync is taking too much time. Current Gradle version is 2.14.1 Even I have used another gradle(2.10) No error shown on the event log. Have no idea where I am stuck. Don't know what to do.

Categories

Resources