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
0
votes
0 answers

Cannot find symbol even when they are in the same package

I trying to compile and execute a CarroTestar.java file where main is contained. I create too a Carro.java file in the same package what i call aula1. But i receive the following error when i try: .\CarroTestar.java:7: error: cannot find symbol …
0
votes
1 answer

error: cannot find symbol import com.example.databinding2.databinding.ActivityMainBindingImpl;

I'm unable to resolve this error. I wanted to use two-way databinding in edittext. Here is the code for the layout file.
0
votes
3 answers

How will I be able to resolve the "cannot find symbol" issue for this code?

I am making a Java program about a simple student management system. Here's the summary of how the code works: Student class Represents a student with attributes such as the name and grade Provides methods to access and modify the student's name…
A_Pag5329
  • 1
  • 2
0
votes
1 answer

Why am I seeing the "cannot find symbol error" in java when creating an object from another class?

This is my primary class named Revenue where I'm trying to call a secondary class in same directory as this one and in the same package as well package Hotel; //import java.util.*; public class Revenue { String Name; Revenue() { …
0
votes
2 answers

Cannot resolve symbol error | Android Studio Error | ROOM Database

I am working on a notepad application in java. After initializing the database in RoomDB.java class, i am importing the values in my MainDAO.java interface to perform Datebase logics. However, i get following errors in my Problems box of my…
Faizan
  • 11
  • 2
0
votes
1 answer

Why CalendarView in android show error when declare or initialize?

good day, I meet some error when I try to code this. If I initial when declare, it show like this . public class FragmentCalendar extends Fragment { Calendar calendar; CalendarView calendarView = (CalendarView)…
0
votes
0 answers

Visual Studio CPU profiler can't load symbols when copied to a different machine

So I made a profiling using Visual Studio 2022 CPU profiler on one machine. Then I copied the resulting .diagsession file to the local copy of the same project on another machine. But when I try to look at the methods it says Symbols failed to load…
0
votes
1 answer

Java - cannot find symbol. Both Files in same directory

I am new to java and have been trying to learn it and now I have been facing this error even though both the files are in the same folder : BankTest.java:3: error: cannot find symbol BankAccount b = new BankAccount( "M J W Morgan", "0012067"…
Dev
  • 55
  • 1
  • 1
  • 5
0
votes
3 answers

Android studio - kotlin class not found when implementing in java file - error "cannot find symbol class"

I am trying to use a kotlin class in my java class in android studio. But I get the following error twice... "cannot find symbol class KotlinClass" KotlinClass is the file name of the kotlin class I am trying to implement. Both the java and kotlin…
0
votes
1 answer

Cannot find Connection, DriverManager and Statement variables in netbeans using ucanaccess

I am not a programmer and basically this is like a cut-and-paste assignment from our lecturer which did not turn out well for me. Here is the code: try { Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"); String path =…
acceber17
  • 3
  • 1
0
votes
1 answer

CPLEX cannot extract the expression

program-EV Charge Scheduling error Description Resource Path Location Type CPLEX(default) cannot extract expression: forall(i in 0..11, j in 0..4) if ( soc[i][j] > 0.7 ) pevch[i][j] == soc[i][j]*100000; else true. model.mod /singlebus …
0
votes
0 answers

Remote Debugging vs2012 "No symbols have been loaded for this Document"

I'm using VS2012 to try to remote debug a service running on a remote server on our network. I have created a shared folder on the remote server that points back at my development machine and allows me to start the msvsmon.exe 64 bit I have copied…
0
votes
0 answers

Glitch project shows Cannot Get error . How to solve it

While integrating WhatsApp business API https://developers.facebook.com/docs/whatsapp/sample-app-endpoints#cloud-api-sample-app-endpoint I will simply add my WhatsApp_Token and Verify_Token But when I share my project on chrome browser via project…
0
votes
0 answers

Cannot Resolve Symbol (Button and Switch) - Android Studio

I have a problem in Android Studio that is causing me to not be able to use Buttons in an Activity. In my activity_settings.xml File I have a Button that looks like:
0
votes
0 answers

Package not found and generated classes are not recognized

I am using wsdl2java plugin for genreating wsdl in a gradle project. I am using intellij. Now the functionality of JAXB seems fine and from some XSD schema several Java classes are generated in build/ folder. The problem is Intellijg cannot resolve…