pancodemakes
pancodemakes

Reputation: 574

IllegalArgumentException when running app. (Android)

When running my project, I get this error.

Error:java.lang.IllegalArgumentException: Invalid resource path: C:\Android\Source Code and Samples\turbo-editor-master\turbo-editor-master\app\src\main\res

I am using source code from the Turbo Editor app and have done no changes to the app prior to running it.

Upvotes: 1

Views: 2057

Answers (3)

pancodemakes
pancodemakes

Reputation: 574

I found the error. While looking at the error, follow the path that it is referring to. If there is no path like that, or a file missing, then create it and move the file to that path. Should fix the problem.

Upvotes: 1

tomtom
tomtom

Reputation: 21

Illegal argument exception is throwed when a function gets wrong (it cannot reasonably deal with it) argument. This can be caused by, for example, missing function that was somewhere overrided. In your case - maybe this is issue with path? I'm not sure but if the path exists you can try changing it so it does not have "spaces" and capital letters. Please dump complete log with error.

Upvotes: 0

Kelevandos
Kelevandos

Reputation: 7082

Try two things: - Clean your project. This helps most of the times - Go to the directory mentioned in the Exception. Make sure it actually exists.

Upvotes: 1

Related Questions