greybax / cordova-plugin-proguard

:white_square_button: Cordova Plugin for ProGuard
MIT License
51 stars 265 forks source link

FileNotFoundException building APK #9

Closed gustavoaca1997 closed 5 years ago

gustavoaca1997 commented 5 years ago

When I run cordova build android the build fails with this error:

Warning: Exception while processing task java.io.FileNotFoundException: /home/user/project/platforms/android/src/main/assets/www/proguard-custom.txt (No such file or directory)
greybax commented 5 years ago

@gustavoaca1997 see PR #2

greybax commented 5 years ago

So if you have cordova version < 7 you should to use cordova-plugin-proguard v1

gustavoaca1997 commented 5 years ago

@greybax but you mean "cordova" or the "cordova android platform"?

greybax commented 5 years ago

cordova android platform

gustavoaca1997 commented 5 years ago

Thanks. It worked. Now I have another issue: After building an APK, it won't open on my phone (it crashes). If I uninstall this plugin, it works. I'll create another issue. This one is already solved :)