-
Notifications
You must be signed in to change notification settings - Fork 81
Problem with missing ddmlib method #74
Comments
Full stacktrace, problem is with plugin, current Spoon runner is working just fine
|
Do you run it with #73 ? |
Same problem even if I use newer dependencies |
for me this is working:
but would be great to see a released 1.0.4 with #73 included |
For me it's still not working, something is bogus here, with my project is still not working https://github.com/SmokSmog/smoksmog-android |
We have the same issue with |
Same issue also for me. |
Running spoon-runner with dependencies from the command line works. Running connectedAndroidTest works. Not sure why this fails. I've tried 1.0.4-SNAPSHOT, as well as updating spoon to 1.2.1-SNAPSHOT, and the gradle plugin dependency to match my project, and still no go. The ddmlib version on spoon was compiling against was old, so I tried updating that to the latest in maven central, but it didn't help. Could it be because the method signature for installPackage() has changed? https://android.googlesource.com/platform/tools/base/+/master/ddmlib/src/main/java/com/android/ddmlib/IDevice.java vs http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r10/com/android/ddmlib/IDevice.java#IDevice.installPackage%28java.lang.String%2Cboolean%29 |
Yes, this is because of this signature change. Hence, the solution would to update spoon runner, make it use newer ddmlib, On Wed, 11 Nov 2015 at 20:13 Mark Andrachek notifications@github.com
|
@roman-mazur I just tried building spoon using a locally installed copy of ddmlib.jar which I pulled from tools folder (and which I verified has the 3 parameter version of the method) and then rebuilt 1.0.4-SNAPSHOT with the newer version. Everything compiles just fine, but I still get the same exception. I even changed the spoon-runner's installPackage() calls to pass null as the 3rd argument, and I still get the NoSuchMethodError. Very strange. Hopefully we get a new stable gradle plugin in the not too distant future. (I'm using 1.5.0-beta1) |
And are sure the new spoon version is used when you run from gradle? On Wed, 11 Nov 2015 at 22:38 Mark Andrachek notifications@github.com
|
If it's using any other version of spoon... I don't know where it would be coming from. |
the build-plugin 1.5.0 is now out - unfortunately I get this error when using it - even with com.squareup.spoon:spoon-runner:1.2.0 included ( which fixed this problem for me with build-plugin 1.3.1 ) |
I'm not really sure what's the problem, but I will leave it here and investigate more in future
The text was updated successfully, but these errors were encountered: