Android Studio Requires rebuilding every launch



Android Studio gives me an absolute nightmare!
Probably every attempt to build probably has a 15% chance of correctly compiling and installing on my device. I have to use Log.d to see if changes are actually being implemented! (FYI: It definitely makes someone crazy!)

The only way to get reliable builds is to hit the “ rebuild project ” before every run, but it takes a huge amount of time and human patience: O - do it every build.

I read similar threads when the stack overflowed, but all of them relate to older versions of Android Studio and actually do not apply to my version. I upgraded from 1.1 to 1.2 and finally to beta version 1.3. The same symptoms still apply.

Offline mode does not help or interfere with Gradle files. Could this have anything to do with R.java issues? I'm not sure.

Any thoughts?

Respectfully,
Doroideh

+5
source share
1 answer

Raise Gradle Script with the following:

Upgrade to Gradle 2.4

add the following to the end of your build.grade script root.

 task wrapper(type: Wrapper) { gradleVersion = '2.4' } 

change gradle properties

 org.gradle.daemon=true org.gradle.parallel=true 

For a full Gradle update go through the official message

0
source

All Articles