java - aapt_rules.txt not found: libGDX project on IntelliJ Idea -


i'm facing problem when try build project i've added support proguard in android/build.gradle file follows:

// proguard configuration buildtypes {     release {         //minifyenabled true turn proguard on         minifyenabled true         //proguardfiles let add own proguard rules ('proguard-project.txt') in case, created gdx-setup         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-project.txt'     } } 

i've no proguard-android.txt file, have proguard-project.txt file within same android module directory following text:

# enable proguard in project, edit project.properties # define proguard.config property described in file. # # add project specific proguard rules here. # default, flags in file appended flags specified # in ${sdk.parentdir}/tools/proguard/proguard-android.txt # can edit include path , order changing proguard # include property in project.properties. # # more details, see #   http://developer.android.com/guide/developing/tools/proguard.html  # add project specific keep options here:  # if project uses webview js, uncomment following # , specify qualified class name javascript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { #   public *; #}  -verbose  -dontwarn android.support.** -dontwarn com.badlogic.gdx.backends.android.androidfragmentapplication -dontwarn com.badlogic.gdx.utils.gdxbuild -dontwarn com.badlogic.gdx.physics.box2d.utils.box2dbuild -dontwarn com.badlogic.gdx.jnigen.buildtarget* -dontwarn com.badlogic.gdx.graphics.g2d.freetype.freetypebuild  -keep class com.badlogic.gdx.controllers.android.androidcontrollers  -keepclassmembers class com.badlogic.gdx.backends.android.androidinput* {    <init>(com.badlogic.gdx.application, android.content.context, java.lang.object, com.badlogic.gdx.backends.android.androidapplicationconfiguration); }  -keepclassmembers class com.badlogic.gdx.physics.box2d.world {    boolean contactfilter(long, long);    void    begincontact(long);    void    endcontact(long);    void    presolve(long, long);    void    postsolve(long, long);    boolean reportfixture(long);    float   reportrayfixture(long, float, float, float, float, float); } 

the error this:

warning:exception while processing task java.io.filenotfoundexception: /home/.../desktop/idea/.../android/build/intermediates/proguard-rules/release/aapt_rules.txt (no such file or directory)

i've seen other's problem have empty proguard rules file, not case.

any ideas on how debug this?

thanks lot in advance!

the solution found problem delete android/build directory inside project altogether, before "invalidate cache/restart..." in file menu. i've tried several times menu option before without deleting android/build directory , made no difference @ all.

rebuilding project didn't work either despite having checkbox "clean project on rebuild" enabled, seems clean project in intellij idea have yourself.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -