Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Lein droid fails on Windows 10 #155

Closed
Ifiht opened this issue Sep 15, 2016 · 7 comments
Closed

Lein droid fails on Windows 10 #155

Ifiht opened this issue Sep 15, 2016 · 7 comments

Comments

@Ifiht
Copy link

Ifiht commented Sep 15, 2016

When passing arguments to droid, it fails with the following:

Retrieving droid/lein-template/0.1.8/lein-template-0.1.8.pom from clojars
Retrieving droid/lein-template/0.1.8/lein-template-0.1.8.jar from clojars
java.lang.IllegalArgumentException: No value supplied for key: true
 at clojure.lang.PersistentHashMap.create (PersistentHashMap.java:77)
    clojure.core$hash_map.invokeStatic (core.clj:387)
    [...]
    clojure.main.main (main.java:37)

the result is the same for any command attempting to create a project with more than the default:

lein new droid appname
lein new droid appname dom.mydom.appname

At first I thought this was my path, so I went through the heinous process of renaming my home folder in windows, it now has no spaces or special characters. Here's the system specs:

> systeminfo
OS Name:                   Microsoft Windows 10 Education
OS Version:                10.0.14393 N/A Build 14393
> java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
> lein -v
Leiningen 2.7.0 on Java 1.7.0_79 Java HotSpot(TM) 64-Bit Server VM

Any help would be awesome, just getting started in this stuff so obviously not a subject matter expert.

@neupsh
Copy link

neupsh commented Oct 7, 2016

I am facing the same on arch linux with lein:
Leiningen 2.7.1 on Java 1.8.0_92 Java HotSpot(TM) 64-Bit Server VM
lein-droid verson: 0.4.4

@jitendranair
Copy link

Facing the same issue, I am on Ubuntu 16.04:

$ lein --version
Leiningen 2.7.1 on Java 1.7.0_80 Java HotSpot(TM) 64-Bit Server VM

$ cat ~/.lein/profiles.clj
{:user {:plugins [[lein-droid "0.4.4"]]}}

@alexander-yakushev
Copy link
Contributor

This bug happened because Leinigen 2.7.0 broke their [internal, to be fair] function get-dependencies. I pushed a fix to the template, lein new droid appname dom.mydom.appname should be working now. Thanks for reporting! I will close the issue when somebody confirms it works for them.

#154 is also related.

@jitendranair
Copy link

Done , the fix works :

$ lein --version
(Warning: profile :android-common not found.)
(Warning: profile :android-user not found.)
Leiningen 2.7.1 on Java 1.8.0_91 OpenJDK 64-Bit Server VM

$ lein new droid test-bug-115 org.exmaple.testbug115
Using lein-droid 0.4.5
Resolving latest artifact versions...
Couldn't resolve the latest org.skummet/clojure version, using default 1.7.0-r1
Couldn't resolve the latest org.clojure-android/clojure version, using default 1.7.0-r3
Couldn't resolve the latest neko version, using default 4.0.0-alpha5
Creating project test-bug-115 ...

$ lein droid doall
----- snip ------
Creating APK...
Signing APK with /home/jitendran/.android/debug.keystore ...
Aligning APK...
Installing APK...
Launching APK...
Binding device port 9999 to local port 9999 ...

Thanks Alex

@alexander-yakushev
Copy link
Contributor

@jitendranair Great! You might want to jump directly to 0.4.6 as it fixes another regression regarding AAR dependencies.

@jitendranair
Copy link

Seems 0.4.6 is not available on clojars.org

@alexander-yakushev
Copy link
Contributor

Sorry, my bad. Should be there now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants