Questions tagged [cannot-find-symbol]

This tag is used when code returns an error message that a symbol cannot be located. These are usually compilation errors in Java.

This tag is used when code returns an error message that a symbol cannot be located. Such messages are usually associated with compilation errors in Java. See this post for a detailed description of causes and solutions: What does a "Cannot find symbol" compilation error mean?

251 questions
2
votes
0 answers

lombok getter not found when used in @Configuration or within entity of Spring Boot when compiling

I am struggling for quite a while to make Lombok getter available in two parts of my Spring Boot API. Despite many articles about this error, I haven’t found a suitable solution on the internet for my problem. IntelliJ does recognize all lombok…
2
votes
1 answer

clang++ warning "could not find object file symbol for symbol" when linking v8 engine's static library in debug mode

I'm trying to run V8 engine's samples from here: Getting started with embedding V8. The output static library is built in release mode, locate at out.gn/libv8_monolith.a and clearly has no debugging symbols in it. The sample can be built and run…
Tran Chien
  • 614
  • 4
  • 10
2
votes
2 answers

Cannot resolve symbol 'OnSuccessListener' in Android Studio

I'm getting this strange behavior that I'm not able to import OnSuccessListener to my code after git cloning and building in a different machine (this resolved fine in my previous machine). However the project builds fine and runs on the emulator.…
2
votes
2 answers

Cannot resolve symbol 'database' in net.sqlcipher import in Android Studio

Any idea why I am having this cannot resolve symbol 'database' in net.sqlcipher. I simply cloned SQLCipher Android Test from GitHub and wanted to test. have also attached the screenshot for reference. Thank you...
2
votes
2 answers

To call inherited final method produce "cannot find symbol" error

I have this code: import javafx.scene.control.TextArea; import javafx.event.EventHandler; import javafx.scene.input.KeyEvent; import javafx.scene.input.KeyCode; import javafx.scene.Node; public class InitialTextFixedArea extends TextArea{ …
2
votes
1 answer

Package in dl4j does not exist

I'm trying to start the dl4j examples in IntelliJ using the 1.8 Java 64x JDK. I've followed the instructions exactly like in description Now the last step doesn't work. While starting i get hundreds of exception like: Error:(3,35) java:package…
Jürgen K.
  • 3,427
  • 9
  • 30
  • 66
2
votes
1 answer

After migrating Eclipse project from Windows to Ubuntu, Eclipse shows "cannot be resolved" compilation errors over all place

I had created a website in eclipse using tomcat as a server on windows 7 and it was working very fine. But now i have migrated from windows to ubuntu. I have installed java and it is working very well. But my eclipse is displaying error on each and…
2
votes
3 answers

Cannot find Symbol - Variable, despite the variable being declared

The numThrows Variable is inciting an error of variable not found when used in the main method. even though i declare it in one of the methods. I use the declare the variable in the void prompt method. This program is designed to calculate Pi using…
2
votes
1 answer

error: cannot find symbol method GetApplicationContext()

I had this error: "error: cannot find symbol method GetApplicationContext()" when I'm creating Fragments for Android app. public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { …
robigroza
  • 559
  • 1
  • 5
  • 22
1
vote
3 answers

Why I am getting error "cannot find symbol" when I would like to use java.io.File class?

I'd like to use isDirectory() method (java.io.File class). I created a simple test code to try out this method, however I always get a 'cannot find symbol' error. My code: import java.io.File; public class MyUtils { public static void…
Belushi
  • 127
  • 1
  • 4
1
vote
1 answer

Adding module-info.java to the project results lombok errors

I am trying to migrate from Java 8 to Java 11. My versions are as follows: OpenJDK 11 Springboot: 2.2.7.RELEASE Maven home: 3.6.1 Lombok: 1.18.12 Everything builds fine. Although I wanted to create a jre using jlink so I need to generate a…
Rocky
  • 429
  • 1
  • 9
  • 26
1
vote
2 answers

Android studio databinding error, Cannot find symbol: debug/dataBindingGenBaseClassesDebug/databinding/ActivitySignupBinding.java

project/build.gradle buildscript { repositories { maven { url 'https://maven.fabric.io/public' } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath…
1
vote
1 answer

Error with not finding symbol - variable in my program

Okay so i was trying to learn java (as i usually do stuff with html and css) and i am just working on a very basic and generic 2d block breaker game. I came across this error and have no clue why i am receiving. i have triple checked my spelling and…
Corey Rinda
  • 115
  • 1
  • 9
1
vote
0 answers

How to fix cannot resolve symbol "MetadataChanges" when implementing firestore recycler adapter?

I'm currently trying to implement a Firestore Recycler Adapter into my Android Studio Project but when I when I try to enter the activity with the recyclerView the app crashes. When I use the debugger it crashes when it reaches the .build() method…
1
vote
1 answer

java maven COMPILATION ERROR : cannot find symbol

java maven COMPILATION ERROR : cannot find symbol I am using eclipse to build a java maven project from a remote linux machine. I get connected to project using Eclipse Remote System Explorer (RSE). When I want to clean install the project, it…
Nilou
  • 145
  • 2
  • 10
1
2
3
16 17