1

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

Dan
  • 32,584
  • 6
  • 98
  • 168
LambdaCore
  • 11
  • 3

1 Answers1

1

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.

coelhudo
  • 111
  • 3