(android:sdk-parser) java.lang.NullPointerException
pocorall opened this issue · 6 comments
I wrote an Android project that uses android-sdk-plugin (https://github.com/pocorall/hello-scaloid-sbt), and I succeeded to build it in my home computer.
But in other machine I used, the build was failed with an error as follows:
[info] Loading global plugins from C:\Users\onsquare\.sbt\plugins
[info] Loading project definition from C:\java\workspace\hello-scaloid-sbt\project
[info] Set current project to hello-scaloid-sbt (in build file:/C:/java/workspace/hello-scaloid-sbt/)
> android:package
[trace] Stack trace suppressed: run last android:sdk-parser for the full output.
[error] (android:sdk-parser) java.lang.NullPointerException
[error] Total time: 0 s, completed 2013. 8. 26 오후 1:52:49
> last
[debug] Running task... Cancelable: false, check cycles: false
java.lang.NullPointerException
at android.Plugin$$anonfun$allPluginSettings$57.apply(rules.scala:340)
at android.Plugin$$anonfun$allPluginSettings$57.apply(rules.scala:337)
at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:580)
at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:580)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
[error] (android:sdk-parser) java.lang.NullPointerException
[error] Total time: 0 s, completed 2013. 8. 26 오후 1:52:49
>
I can't figure out what is the problem. Please help me.
Which plugin version? Try 1.0.0 if you haven't already
Sent from my tablet
On Aug 25, 2013 10:01 PM, "Sung-Ho Lee" notifications@github.com wrote:
I wrote an Android project that uses android-sdk-plugin (
https://github.com/pocorall/hello-scaloid-sbt), and I succeeded to build
it in my home computer.But in other machine I used, the build was failed with an error as follows:
[info] Loading global plugins from C:\Users\onsquare.sbt\plugins
[info] Loading project definition from C:\java\workspace\hello-scaloid-sbt\project
[info] Set current project to hello-scaloid-sbt (in build file:/C:/java/workspace/hello-scaloid-sbt/)android:package
[trace] Stack trace suppressed: run last android:sdk-parser for the full output.error java.lang.NullPointerException
[error] Total time: 0 s, completed 2013. 8. 26 ¿ÀÈÄ 1:52:49last
[debug] Running task... Cancelable: false, check cycles: false
java.lang.NullPointerException
at android.Plugin$$anonfun$allPluginSettings$57.apply(rules.scala:340)
at android.Plugin$$anonfun$allPluginSettings$57.apply(rules.scala:337)
at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:580)
at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:580)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
error java.lang.NullPointerException
[error] Total time: 0 s, completed 2013. 8. 26 ¿ÀÈÄ 1:52:49I can't figure out what is the problem. Please help me.
Reply to this email directly or view it on GitHubhttps://github.com//issues/13
.
Update your sdk and build tools to v17 or newer
Sent from my tablet
On Aug 25, 2013 10:01 PM, "Sung-Ho Lee" notifications@github.com wrote:
I wrote an Android project that uses android-sdk-plugin (
https://github.com/pocorall/hello-scaloid-sbt), and I succeeded to build
it in my home computer.But in other machine I used, the build was failed with an error as follows:
[info] Loading global plugins from C:\Users\onsquare.sbt\plugins
[info] Loading project definition from C:\java\workspace\hello-scaloid-sbt\project
[info] Set current project to hello-scaloid-sbt (in build file:/C:/java/workspace/hello-scaloid-sbt/)android:package
[trace] Stack trace suppressed: run last android:sdk-parser for the full output.error java.lang.NullPointerException
[error] Total time: 0 s, completed 2013. 8. 26 ¿ÀÈÄ 1:52:49last
[debug] Running task... Cancelable: false, check cycles: false
java.lang.NullPointerException
at android.Plugin$$anonfun$allPluginSettings$57.apply(rules.scala:340)
at android.Plugin$$anonfun$allPluginSettings$57.apply(rules.scala:337)
at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:580)
at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:580)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
error java.lang.NullPointerException
[error] Total time: 0 s, completed 2013. 8. 26 ¿ÀÈÄ 1:52:49I can't figure out what is the problem. Please help me.
Reply to this email directly or view it on GitHubhttps://github.com//issues/13
.
I am using build tools v20 and android-sdk-plugin 1.0.1.
The error message is just changed to "Android SDK build-tools not available" and the problem is not fixed.
Absolutely I properly set ANDROID_HOME and I have no problem with running Android SDK.
The current version of Android build tools is 18.0.1; go back into sdk
manager and make sure you install build tools; reload the packages list if
they do not appear
If you see v20, you don't have them installed
Sent from my phone
On Aug 29, 2013 9:23 PM, "Sung-Ho Lee" notifications@github.com wrote:
I am using build tools v20 and android-sdk-plugin 1.0.1.
The error message is just changed to "Android SDK build-tools not
available" and the problem is not fixed.Absolutely I properly set ANDROID_HOME and I have no problem with running
Android SDK.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-23536999
.
After updating the Android SDK, it works with a charm.
Thank you!