Android Studio cannot find the R file resolution rollup

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.