[Build] Configuration with name 'default' not found.
Description: Trying to build the project in IntelliJ. Used to work until release 3. Have tried reinstalling JDK, JRE, IntelliJ, etc. The error I get is:
Configuration with name 'default' not found.
When trying to build gradle. Building through GitShell works fine.
Steps to reproduce:
- Import project from existing sources in intelliJ.
- Continue to gradle import window.
- Wait for error to appear.
Expected behavior: It should build without error
Actual behavior: It builds with the error "Configuration with name 'default' not found."
Version: Current version. It pulls from Git.
Please, read the readme.
This error shows up because you didn't run git submodule update --init --recursive, so gradle doesn't find the api.
Go to the project folder and run that command from terminal.
Report back if the problem fixed or it stil happens.
@pr0ves I was able to import my built git project but in intelliJ the API doesnt load properly
Install the "Lombok" plugin.
Still get over 100 errors of cannot find symbols.
C:\Users\Marc\Documents\GitHub\PokemonGoBot\lib\PokeGOAPI-Java\src\main\java\com\pokegoapi\api\pokemon\EggPokemon.java
Error:Error:line (49)java: cannot find symbol
symbol: method isInUse()
location: variable incubator of type com.pokegoapi.api.inventory.EggIncubator
C:\Users\Marc\Documents\GitHub\PokemonGoBot\lib\PokeGOAPI-Java\src\main\java\com\pokegoapi\api\PokemonGo.java
Error:Error:line (103)java: cannot find symbol
symbol: method setLatitude(double)
location: class com.pokegoapi.api.PokemonGo
Error:Error:line (104)java: cannot find symbol
symbol: method setLongitude(double)
location: class com.pokegoapi.api.PokemonGo
Error:Error:line (105)java: cannot find symbol
symbol: method setAltitude(double)
location: class com.pokegoapi.api.PokemonGo
C:\Users\Marc\Documents\GitHub\PokemonGoBot\lib\PokeGOAPI-Java\src\main\java\com\pokegoapi\api\inventory\EggIncubator.java
Error:Error:line (75)java: cannot find symbol
symbol: method getRequestHandler()
location: variable pgo of type com.pokegoapi.api.PokemonGo
Error:Error:line (84)java: cannot find symbol
symbol: method getInventories()
location: variable pgo of type com.pokegoapi.api.PokemonGo
C:\Users\Marc\Documents\GitHub\PokemonGoBot\lib\PokeGOAPI-Java\src\main\java\com\pokegoapi\main\RequestHandler.java
Error:Error:line (80)java: cannot find symbol
symbol: method getRequest()
location: variable requestIn of type com.pokegoapi.main.ServerRequest
Error:Error:line (98)java: cannot find symbol
symbol: method getRequest()
location: variable serverRequest of type com.pokegoapi.main.ServerRequest
Error:Error:line (188)java: cannot find symbol
symbol: method getLatitude()
location: variable api of type com.pokegoapi.api.PokemonGo
Error:Error:line (189)java: cannot find symbol
symbol: method getLongitude()
location: variable api of type com.pokegoapi.api.PokemonGo
Error:Error:line (190)java: cannot find symbol
symbol: method getAltitude()
location: variable api of type com.pokegoapi.api.PokemonGo
Error:Error:line (275)java: cannot find symbol
symbol: method getLatitude()
location: variable api of type com.pokegoapi.api.PokemonGo
Error:Error:line (276)java: cannot find symbol
symbol: method getLongitude()
location: variable api of type com.pokegoapi.api.PokemonGo
Error:Error:line (277)java: cannot find symbol
symbol: method getAltitude()
location: variable api of type com.pokegoapi.api.PokemonGo
Was finally able to update a couple plugins, and now I get this:
Error:(59, 66) Kotlin: Unresolved reference: thenComparing
C:\Users\Marc\Documents\GitHub\PokemonGoBot\src\main\kotlin\ink\abb\pogo\scraper\Settings.kt
Error:(30, 107) Kotlin: Unresolved reference: Base64
Error:(139, 14) Kotlin: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun CharSequence.lines(): List<String> defined in kotlin.text
Error:(139, 22) Kotlin: Cannot choose among the following candidates without completing type inference:
@HidesMembers public inline fun <T> Iterable<???>.forEach(action: (???) -> Unit): Unit defined in kotlin.collections
@HidesMembers public inline fun <K, V> Map<???, ???>.forEach(action: (Map.Entry<???, ???>) -> Unit): Unit defined in kotlin.collections
Error:(140, 17) Kotlin: Unresolved reference: it
Error:(140, 31) Kotlin: Unresolved reference: it
Error:(143, 24) Kotlin: Unresolved reference: it
Error:(144, 37) Kotlin: Unresolved reference: it
@pr0ves @jabbink ?
I would really like to get back to contributing to this project. I have evolution code written but it is hard to write it using notepad++ haha
When a build fails,
- copy the entire log, the copied parts alone tell us nothing at all.
- gradlew tells you to use --info or --debug to show more info, often the info given then is enough to fix it yourself, so please retry and when you don't understand it, paste the entire log here.
Dont think he can run gradlew with a path that deep
I gave up on IntelliJ, and trying to migrate to eclipse now.
I am logging all the steps that I take and hopefully can hand you a write up to put on the wiki to get more people helping with development.
Gradle builds and runs fine.
When I try to import the gradle project into eclipse or intelliJ I get the default configuration error.
Getting the same issues. Tried with IntelliJ and with Eclipse. RTFM doesn't help. Changed the paths to be shorter when there were issues with path names but still can't load the project into an IDE
Installing Lombok only resolves running the code. Cloning the github still fails with the "default" issue
Fix found:
- Install Lombok
- Clone the repository through IntelliJ
- Attempt to import the project
- Wait for "Default" error DO NOT CLOSE ANY DIALOGS
- Go to workspace folder and open the cloned project folder
- Use the "git submodule update --init --recursive" command from cmd
- Use the "gradlew build" command from cmd
- Click okay in the IntelliJ error dialog and hit okay again to create the project
^
That should work as well. Cloning via git and then manually import into IntelliJ should also work.
The order of the steps is important, and they're defined with an order in the readme because of that.