Home > Mobile >  Android Studio code does not perform
Android Studio code does not perform

Time:10-02

Android studio to modify the code to run after, no change, before operation or modification of the code (Rebuild again run will solve the problem, but each time Rebuild is too time consuming)

Try the following method (problems unresolved) :
https://blog.csdn.net/xk8671598/article/details/74908800
https://blog.csdn.net/l_o_s/article/details/83026876

CodePudding user response:

Delete the build file try to restart

CodePudding user response:

reference 1st floor 丿 roybill response:
delete the build file to restart try
delete this file and then run can solve the problem, but doing so are not equal to rebuild, if every run all want to do this, every time 30 s +, not desirable

CodePudding user response:

What code is changed, please

CodePudding user response:

The
reference 3 floor angelsmiling response:
what are you changed the code
just added a DrawerLayout in XML

CodePudding user response:

In theory will be effective after you run, you can look at break point in the corresponding code, and see if it is the logical problems, and then again after you clean engineering build, should not have this problem again, behind much trial and error, the hope can help you

CodePudding user response:

reference 5 floor angelsmiling reply:
in theory will be effective after you run, you can look at break point in the corresponding code, and see if it is the logical problems, and then again after you clean engineering build, should not have this problem again, behind much trial and error, the hope can help you
if code logic problem is, the code will be an error, and the code logic does not affect the construction, removal of the build folder and rebuild can the problem be solved, but I can't do this every time, because every time after the operation requires a relatively long time to do it, it is a waste of time, and there is no this kind of problem before, just click "run" button to run

CodePudding user response:

Resolved
Methods: delete the app under the build. The gradle res. SrcDirs in SRC/main/res/layout, then run

CodePudding user response:

Wrote a recording posted at https://blog.csdn.net/qq_40167860/article/details/101451368
  • Related