road9 / android-unused-resources

Automatically exported from code.google.com/p/android-unused-resources
0 stars 0 forks source link

running the tool and android studio project gives error #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I put the AndroidUnusedResources1.6.2.jar in root folder of the project 
using android studio
2.Ran the following command java -jar AndroidUnusedResources1.6.2.jar
3. I get error
"The current directory is not a valid Android project root."

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ankitmit...@gmail.com on 23 Jan 2014 at 8:30

GoogleCodeExporter commented 8 years ago
I also tried it in src/main, and got the same error message.
Then I did: ln -s java src
After this the error I got was:
You must first build your project to generate R.java

So clearly it assumes that we have src, gen directories (which we would have in 
Eclipse)

Original comment by gavri...@gmail.com on 22 Feb 2014 at 10:17

GoogleCodeExporter commented 8 years ago
after `ln -s ../../build/source/r/release gen` it works

Original comment by gavri...@gmail.com on 22 Feb 2014 at 10:30

GoogleCodeExporter commented 8 years ago
Hi I am trying to run it this tool in my android studio project and i am 
getting the same error "The  current directory is not a valid Android project 
root". Which directory should i use.

thanks in advance

Original comment by amit...@gmail.com on 26 Mar 2015 at 9:20