jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

Fix for recent Android SDK #93

Closed motemen closed 13 years ago

motemen commented 13 years ago

With latest SDK, when building apk, for example android:package-debug task, this task fails with error log java.lang.NullPointerException. Internally this is caused by

java.lang.NoSuchMethodException: com.android.sdklib.build.ApkBuilder.addNativeLibraries(java.io.File, java.lang.String)
        at java.lang.Class.getMethod(Class.java:1605)
        at ApkBuilder.addNativeLibraries(ApkBuilder.scala:61)

This seems to be because Android SDK's ApkBuilder#addNativeLibraries method has changed: it is void addNativeLibraries(File nativeFolder) now. This pull-req is to follow this change.

motemen commented 13 years ago

thanks, made work with older api in this commit: https://github.com/motemen/android-plugin/commit/2b3a9c9349612d26c8dc3699cd15d168fc82597f

ezh commented 13 years ago

Please, merge. I do my first steps with plugin, so [error] {file:/home/ezh/0projectsAndroid/HelloNative/}Hello Native/android:package-debug: java.lang.NullPointerException very annoying. Especially for beginners.

Thank you