One, the new activity in the R file can not be found, the other files in the R file is normal use.
Workaround:
In this activity, the introduction of R package can: import COM.EXAMPLE.ZCJ.PASSWORD.R;
This problem occurs when you create a new activity file under a subdirectory, and you can set the automatic import package: File-settings-editor-general-auto import, optimize imports on the fly and add Unambiguous imports on the fly tick.
Second, the newly imported project cannot find the R file (all files cannot find the R file),
Workaround:
Android Studio-build-clean Project-rebuild Project; After rebuild, an error message is displayed in as, which can be modified as prompted.
Third, the Error is prompted as "Error:execution failed for Task": App:compiledebugaidl ' .> aidl is missing ".
Workaround:
http://blog.csdn.net/hao2244/article/details/46663885
(online too many repetitive solutions, these three categories are more common, if the method here does not solve your problem, the message told me, I will timely pro-test solution. Update in ... )
Android Studio cannot find the R file resolution rollup