Closed perihanmirkelam closed 4 years ago
Kotlin will download it automatically. What version of kotlinc are you using?
info: kotlinc-jvm 1.3.72 (JRE 1.8.0_201-b09)
You'll have to file a bug on JetBrains' YouTrack for Kotlin then. I have no control over this stage of the execution. The compiler is supposed to download and resolve the dependency before it ever reaches my code. Feel free to link the bug here so I can watch it and answer any questions from JetBrains as needed.
Also did you try running the script as an executable rather than manually invoking kotlinc
?
I got this error when running the script as an executable (I guess my env version is old)
/usr/bin/env: invalid option -- 'S'
I execute adb -s emulator-5554 shell getevent | ./adb-event-mirror.main.kts 0498ad080405
`
I opened an issue on http://kotl.in/issue and tagged you. Thanks for your help.
Are you on Ubuntu 18.04 or older?
For -S
to work you need a newer coreutils
which requires using a backports repository. There's details in here: https://github.com/JakeWharton/pidcat/issues/161
I am on Mint 19 (based on Ubuntu 18.04). Updating coreutils is worked for me. No more dependency errors.
I want to share my experience, Trying on an emulator(Nexus 4 L) with a physical Nexus 4 L failed to mirror Trying on an emulator(Nexus 5 Q) with a physical Xiaomi Q failed to mirror Trying on an emulator(Nexus 5 Q) with an emulator(Nexus 5 P) succeed Trying on an emulator(Nexus 5 Q) with an emulator(Nexus 4 L) failed to mirror
I was hoping control my Nexus 4 remotely by the emulator with VPN. But it was nice to solve other issues. Thanks a lot!
Couldn't run the script by executing
adb -s emulator-5554 shell getevent | kotlinc -script -- adb-event-mirror.main.kts 0498ad080405
Result: