zoukankan      html  css  js  c++  java
  • Android Studio 没有assets目录的问题

    Screen Shot 2014-02-22 at 19.41.02

    Where to place the assets folder in Android Studio

    If you are having problems with asset files not being included in your compiled apk file, it may be because your assets folder is placed in the wrong directory.

    The assets folder should usually be inside the following folder:

    <project>/src/main/

    That is the default, but make sure to check the asset folder configuration setting in your projects .iml file, to be sure which folder it really is:

    <option name=”ASSETS_FOLDER_RELATIVE_PATH” value=”/src/main/assets” />

    The path to the assets folder should be:

    <project>/src/main/assets

    place all your assets inside, and the files should now get included in the build!

    If not, try cleaning t he project, by going to Build -> Clean project
    or running  ./gradlew clean

    project-structure

    转:http://envyandroid.com/archives/1074/assets-android-studio
  • 相关阅读:
    2-Rsync备份-全网备份
    1-Rsync备份-备份概述
    复杂声明学习总结
    EasyExcel的用法
    listvue
    解决Error: Cannot find module 'node-sass'问题
    Webpack
    babel的使用
    nodejs的使用
    vue入门
  • 原文地址:https://www.cnblogs.com/spring87/p/4311923.html
Copyright © 2011-2022 走看看