Closed sakuraiyuta closed 9 years ago
Yes, it is expected in 0.3.x. :default [:dev]
makes the default profile ignore :user
profile which usually contains extra dependencies unfit for Android. Please see https://github.com/clojure-android/lein-droid/wiki/Profiles
Long story short: to make up for missing :user
, make :android-common
and :android-user
profiles in profiles.clj
and put there your system-wide Android-specific options. Then inherit these profiles in the project's :dev
and :release
profiles (as proposed in the sample)
Sorry, I had make same mistake as issue #111.
Removed comment-out :dev [;; :android-common :android-user]
elements, and worked well.
(lein droid build
uses my profiler's settings :android-common
)
I think good to remove comment-out of keyword :dev [;; :android-common :android-user]
by default.
What is the reason for comment-out by default? To keep compatibility on older lein-droid
?
Anyway, I was a little understanding about profiler. Many thanks for quick response.
Here's the reason: if you keep those lines uncommented, and you don't have :android-common
and :android-user
profiles, Leiningen will complain. It's just a warning, but still a confusing one. I mention the new way of dealing with profiles a several times in Tutorial, so new users should know what's going on, but the users migrating from 0.2.x to 0.3.x might have such difficulties. I'm sorry for that.
I also feel that lein-droid
is now in the transition period.
I know that Leiningen shows warning when :android-common
not found, but there's no problem.
Rather, it's better way to suggest to users, "You should use :android-common
".
lein-droid
has continued to glow, It's awesome.
Of course, now, many problems remain, to use clojure on android. However, I want to contribute to this project.
Thanks!
Well, maybe it would be better to uncomment those profiles by default. I will think about it.
:+1:
lein-droid
ignores some(or all?) settings in${HOME}/.lein/profiles.clj
.I created new project, build, and got the error
The value of sdk-path is nil.
, as follows:Generated
project.clj
:My profiles, variously tried:
I tried that using
0.2.4
and0.3.0-beta4
and got same error.It works well if you fix
project.clj
as follows::sdk-path
element in:android
section:default [:dev]
element in:profiles
sectionIs it expected result? Do I wrong?