Android Studio Assets Error: Content not allowed in preface

Source: Internet
Author: User

Based on previous experience with Eclipse, the assets directory was also placed in the src/main/res directory when it was developed on Android Studio, with the following exception when the build occurred:

Executing tasks: [Clean,: app:generatedebugsources,: app:generatedebugandroidtestsources]configuration on Demand are an incubating feature.:app:clean:app:prebuild up-to-date:app:predebugbuild Up-to-date:app:checkdebugmanifest:app: PrepareDebugDependencies:app:compileDebugAidl:app:compileDebugRenderscript:app:generateDebugBuildConfig:app: Generatedebugassets up-to-date:app:mergedebugassets:app:generatedebugresvalues UP-TO-DATE:app: Generatedebugresources:app:mergedebugresources[fatal Error]: 1:1: No content is allowed in the preface.



Http://stackoverflow.com/questions/18302603/where-to-place-assets-folder-in-android-studio here is a good explanation for the problem.

Solution:

Move the assets directory to the src/main/ directory.

Android Studio Assets Error: Content not allowed in preface

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.