Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find Class com.udacity.Game #6

Open
acudworth3 opened this issue Jun 27, 2018 · 9 comments
Open

Cannot find Class com.udacity.Game #6

acudworth3 opened this issue Jun 27, 2018 · 9 comments

Comments

@acudworth3
Copy link

Hey I am following along with the udacity course and it says to set main class to com.udacity.Game. when configuring the application to run (using intellij). For some reason intellij is not finding this class even though it is in the file.

See the warning below. I can build the file with no issues, but am not able to run the application. Appreciate any help. New to intellij..

image

@rohitvivek
Copy link

facing the same error as @acudworth3 .

@DouggyC
Copy link

DouggyC commented Jul 24, 2018

ok got it working

Try re-opening the project in the directory - "Project 1 TicTacToe"

ProTip

-Gradle 4.4 will prompt a deprecation warning about the project name containing one of the following characters: [ , /, , :, <, >, ", ?, *, |]... scheduled to be removed in Gradle 5.0.

Simply rename, remove whitespace from folder name - "Project_1_TicTacToe"

@PoBlue
Copy link

PoBlue commented Aug 3, 2018

Same as @DouggyC do, re-opening the project, can fix this issues.

Or you can try the following steps to import module manually:

  1. Open Project Structure
  2. Click +. And Import module, Select Project 1 TicTacToe
  3. Apply it.

2018-08-03 11 36 10

2018-08-03 11 36 54

@MonikaBenson
Copy link

Hey, I have the same problem but all solutions (here suggested) didn't help. Maybe someone have other idea, why intellij is not finding this class (game).

Appreciate any help.

@meowpeow
Copy link

yep, didnt work

@Turskyi
Copy link

Turskyi commented May 4, 2019

still not working

@mbpnw
Copy link

mbpnw commented Jul 7, 2019

update Project 1 - TicTacToe\gradle\wrapper\gradle-wrapper.properties file (in ide) with
distributionUrl=https://services.gradle.org/distributions/gradle- .... with version of gradle you've downloaded and refresh gradle

@RamyaMeenachi
Copy link

update Project 1 - TicTacToe\gradle\wrapper\gradle-wrapper.properties file (in ide) with
distributionUrl=https://services.gradle.org/distributions/gradle- .... with version of gradle you've downloaded and refresh gradle

Can you please explain more on this, it is still not working

@mrtmgrn
Copy link

mrtmgrn commented Feb 12, 2020

I almost lost hope on finding the solution and wanted to ditch the project and at last, I fixed the problem. After changing the name of the file, I tried to Reimport All Gradle Project and it helped (on the right side bar "Gradle".

gradle

Now it shows the main class in Settings :)

main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants