← Back to team overview

sikuli-driver team mailing list archive

[Question #172689]: compile android-bot serperately

 

New question #172689 on Sikuli:
https://answers.launchpad.net/sikuli/+question/172689

I want to compile android-bot outside the entire source codes, but I got some errors when compiling.

What I have done:
1. added sikuli-script.jar and monkeyrunner.jar in the classpath
2. added java.ext.dirs setting to android sdk tools\lib folder.

But I got two types of exceptions:
1. incompatible types
    [javac] found   : com.android.monkeyrunner.core.IMonkeyDevice
    [javac] required: com.android.monkeyrunner.MonkeyDevice
    [javac]             _dev = adb.waitForConnection();

I do not know why compiler think _dev is a IMonkeyDevice object..

2. drag(org.python.core.PyObject[],java.lang.String[]) in com.android.monkeyrunner.MonkeyDevice cannot be applied to (int,int,int,int,int,long)
    [javac]       _dev.drag(start.x, start.y, end.x, end.y, steps, ms);
    [javac]           ^

All MonkeyDevice methods could not use directly. Compiler complains the missing argument PyObject.

I think that maybe my monkeyrunner.jar is not root cause? I used latest r13 monkeyrunner.jar file
Could anyone provide a working monkeyrunner.jar if that's the root cause? Thanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.