PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

execution failed for task ':run'

Open TheJ0k3r opened this issue 10 years ago • 7 comments

This is what happened to me when i ran the last build i don't realy know how it happaned. I can log in but then it crashes

like this knipsel1236

I did all these steps |-Clone this repo: `git clone

||-Run git submodule update --init --recursive

|||-Run from terminal/cmd: gradlew build

||||-Rename ./config.properties.template to ./config.properties

|||||-Modify config.properties as you please

||||||-To run the bot directly from console run gradlew run

Stacktrace http://pastebin.com/PSd1rrGx

Version: latest on 29-07-2016 13:50

Operating System: windows 10 pro

Java version: java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

TheJ0k3r avatar Jul 29 '16 11:07 TheJ0k3r

Duplicate of #627

Sieberkev avatar Jul 29 '16 11:07 Sieberkev

Quick fix for that https://github.com/jabbink/PokemonGoBot/blob/develop/src/main/kotlin/ink/abb/pogo/scraper/Bot.kt#L91-L98

Use try-catch there

 do {
        try {
                reply = api.map.mapObjects
                Log.normal("Got ${reply.pokestops.size} pokestops")
                if (reply == null || reply.pokestops.size == 0) {
                    Log.red("Retrying in $sleepTimeout seconds...")
                    Thread.sleep(sleepTimeout * 1000)
                }
            } catch (e : Exception){}
        } while (reply == null || reply.pokestops.size == 0)

pashorizer avatar Jul 29 '16 12:07 pashorizer

Duplicate, closing.

langerhans avatar Jul 29 '16 12:07 langerhans

its not anout the

Contents of buffer are null

you refering to

my problem is about the

execution failed for task run

TheJ0k3r avatar Jul 29 '16 12:07 TheJ0k3r

The fix provided by @pashorizer will let the task "run" (in fact is it a build + run, and the run part fails here) pass, but running it will still throw a LOT of exceptions.

Sieberkev avatar Jul 29 '16 12:07 Sieberkev

Try to go to /lib/pokemonjavaapi (something like this) and git pull origin Development

karael avatar Jul 29 '16 12:07 karael

can't find it

TheJ0k3r avatar Jul 29 '16 12:07 TheJ0k3r