I want to use Emacs for Android development, so I installed android-mode
.
But I get an error. I entering path, package, activity names and I get "can't find project root" error.
I am using Ubuntu 16.04
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI want to use Emacs for Android development, so I installed android-mode
.
But I get an error. I entering path, package, activity names and I get "can't find project root" error.
I am using Ubuntu 16.04
This problem is related to this code in android-mode.el
(defmacro android-in-root (body)
"Execute BODY form with project root directory as
``default-directory''. The form is not executed when no project
root directory can be found."
`(let ((android-root-dir (android-root)))
(if android-root-dir
(let ((default-directory android-root-dir))
,body)
(error "can't find project root"))))
If you remove the (error "can't find project root") it will work in this case. I don't know the implications of this removal for other situations, but it is discussed here and here.
I was having the same problem. I removed the error and it worked.