Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this tool support latest gradle android project structure? #53

Closed
amatkivskiy opened this issue Jun 14, 2016 · 2 comments
Closed

Comments

@amatkivskiy
Copy link

amatkivskiy commented Jun 14, 2016

Hi guys, thanks for such cool tool.
When I try to run it with lint XML file it fails. It says that manifest file can't be found.

IOError: [Errno 2] No such file or directory: '/Projects/Project/app/AndroidManifest.xml'

@ypresto
Copy link

ypresto commented May 16, 2017

Use below snippet to workaround until this is fixed:

android-resource-remover --app app/src/main --xml "`pwd`/app/build/reports/lint-results-yourBuildVariant.xml"

@msj2
Copy link

msj2 commented Jan 24, 2019

  • I am on Android Studio 3.2.1
  • lint is in SDK Folder
  • I ran Lint & exported the XML to home directory.
  • I had lots of XML files (like AndroidLint*.xml, Unnecessary*.xml......)
  • I only have the Debug APK ...
  • I tried running android-resource-remover as below

android-resource-remover --lint ~/Android/Sdk/tools/lib/lint-26.0.0-dev.jar

Traceback (most recent call last): File "/usr/local/bin/android-resource-remover", line 11, in <module> load_entry_point('android-resource-remover==0.1.7', 'console_scripts', 'android-resource-remover')() File "/usr/local/lib/python2.7/dist-packages/android_clean_app.py", line 196, in main lint_result_path, app_dir, ignore_layouts = run_lint_command() File "/usr/local/lib/python2.7/dist-packages/android_clean_app.py", line 96, in run_lint_command call_result = subprocess.call([lint, app_dir, '--xml', lint_result]) File "/usr/lib/python2.7/subprocess.py", line 523, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 13] Permission denied

with or without sudo, I get the same error

Can I get help..

@msj2 msj2 unassigned ca77y Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants