PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

build failed

Open LuyiTian opened this issue 10 years ago • 4 comments

I can't find pokemon using the released .jar so I tried to modify the src and build on my own. But I encountered this error:

.../PokemonGoBot-master/src/main/kotlin/ink/abb/pogo/scraper/Main.kt: (26, 27): Unresolved reference: PTCLogin
.../PokemonGoBot-master/src/main/kotlin/ink/abb/pogo/scraper/Main.kt: (126, 16): Unresolved reference: PTCLogin
:compileKotlin FAILED

FAILURE: Build failed with an exception.

if I remove any code related to PTCLogin the build is successful. Does anyone know why?

LuyiTian avatar Jul 22 '16 03:07 LuyiTian

I believe the PokeGOAPI-Java build was changed a few hours ago, causing this error.

tehalexf avatar Jul 22 '16 03:07 tehalexf

You can fix it by changing lines 26 and 126 to say PtcLogin rather than PTCLogin.

tehalexf avatar Jul 22 '16 04:07 tehalexf

You can fix it by changing PTCLogin to PtcLogin in Main.kt The PokeGOAPI-Java renamed the class to camelcase

okynk avatar Jul 22 '16 04:07 okynk

Yes I have searched the API and found they rename from PTC to Ptc. Thank you all

LuyiTian avatar Jul 22 '16 04:07 LuyiTian