PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Kotlin: Unresolved reference: JSONObject

Open marcelaraujo opened this issue 10 years ago • 7 comments

Description: I can't build the bot with the commented router provider instead of using defaults

Steps to reproduce:

  1. Change the route provider to use the commented provider
  2. gradlew build

Expected behavior: Build runs with no errors

Actual behavior: Error:(71, 27) Kotlin: Unresolved reference: JSONObject

Version: 0.6.0

Operating System: Mac OS X 10.11.6

Java version: java version "1.8.0_92" Java(TM) SE Runtime Environment (build 1.8.0_92-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

marcelaraujo avatar Aug 15 '16 17:08 marcelaraujo

Hi @marcelaraujo,

It looks like there is some information missing from your ticket that will be needed in order to diagnose and fix the problem at hand. Please take a look at the Contribution Guidelines, which will tell you exactly what your ticket has to contain in order to be processable.

I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two days (until 2016-08-17 19:40) I'll close this ticket so it doesn't clutter the bug tracker.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

jabbink avatar Aug 15 '16 17:08 jabbink

Uhm ignore that bot. No idea why it flagged this.

jabbink avatar Aug 15 '16 17:08 jabbink

Please be aware that OSRM has changed its API since this code was rendered obsolete.

nostyler avatar Aug 16 '16 08:08 nostyler

Oh and add 'compile group: 'org.json', name: 'json', version: '20160212' to gradle.build

nostyler avatar Aug 16 '16 11:08 nostyler

@nostyler I solved using the Jackson module but I've changed that part of source.

marcelaraujo avatar Aug 16 '16 11:08 marcelaraujo

@jabbink I'll create a PR with changes which are better than use regex to extract route geometries.

marcelaraujo avatar Aug 16 '16 11:08 marcelaraujo

The RouteProvider functionality has been rewritten :)

Sieberkev avatar Aug 24 '16 21:08 Sieberkev