ERROR: Unknown option '--no-crunch' - AAPT

2020-04-06 03:12发布

问题:

I have downloaded latest revision (r14) yesterday. but getting this error while running any application

ERROR: Unknown option '--no-crunch'

Please help...

回答1:

I have recently faced this issue.

But it is now solved.

After updating to ADT r14, go to Window -> SDK Manager (in Eclipse)

  1. Check on 'repository', uncheck "installed"
  2. Wait for packages to load, then select all support packages, accept all and install them
  3. Restart Eclipse

Now you can run your apps on new ADT r14, without 'crunch' errors.



回答2:

I think the --no-crunch was dropped from platform-toosl revision 7. aapt (part of platform-tools) revision 8 is needed to use the latest ADT.



标签: android aapt