android-studio - Android Studio requires clean and gradle build every time you modify the code
世界只因有你
世界只因有你 2017-05-16 13:29:07
0
3
1349

After a power outage, Android Studio needs to clean every time it modifies the code so that gradle build can take effect on the device

Is there any way to solve this situation, because it affects time too much

The problem has been solved and it is not a problem of power outage. Before the power outage, I modified the build.gradle file and then did not operate it again, so I mistakenly thought that the Android Studio configuration was lost. Please refer to my answer for the solution.

世界只因有你
世界只因有你

reply all(3)
某草草

Problem found

For the name of the previous package, I set a time, accurate to the minute

def releaseTime() {
    return new Date().format("yyyy-MM-dd_HHmm", TimeZone.getTimeZone("UTC"))
}

was modified to

def releaseTime() {
    return new Date().format("yyyy-MM-dd_HH", TimeZone.getTimeZone("UTC"))
}

After that, modify the code and click Run directly, and it will take effect

Some students may use timestamps to generate apk names, you can check to see if this is the problem

阿神

Try the following:

File --> Invalidate Cache/ Restart

淡淡烟草味

http://blog.csdn.net/wbshuang...
Try this, it will greatly improve the compilation speed
And it is recommended to use the android studio developer version
I am currently using android-studio-ide-171.3829324-windows

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template