Thursday, 15 September 2011

osx - Android Studio multi-dex gradle doesn't recognize java on mac -



osx - Android Studio multi-dex gradle doesn't recognize java on mac -

i'm trying compile gradle project (plugin 0.14.0) multi-dex on mac, , getting error:

failure: build failed exception. * went wrong: execution failed task ':applicationcontainer:createdebugmaindexclasslist'. > java.io.ioexception: cannot run programme "java": error=2, no such file or directory

any suggestions? when execute ./gradlew terminal, works.

found solution. seems android studio didn't inherit environment path or something. ran terminal:

open /applications/android\ studio.app

and solved it. more elegant solutions happily accepted :d

java osx gradle android-studio multidex

No comments:

Post a Comment