EMDK for Xamarin,  error: cannot find symbol at compiling time

Hi, I'm trying to compile my application using VS2017 and I get errors:

 

error: cannot find symbol  com.symbol.emdk.EMDKManager.StatusListener

symbol:   class StatusListener

location: class EMDKManager

\obj\Debug\android\src\mono\com\symbol\emdk\EMDKManager_StatusListenerImplementor.java

 

error: cannot find symbol

public void onStatus (com.symbol.emdk.EMDKManager.StatusData p0, com.symbol.emdk.EMDKBase p1)

symbol:   class StatusData

location: class EMDKManager

\obj\Debug\android\src\mono\com\symbol\emdk\EMDKManager_StatusListenerImplementor.java

 

error: cannot find symbol

private native void n_onStatus (com.symbol.emdk.EMDKManager.StatusData p0, com.symbol.emdk.EMDKBase p1);

symbol:   class StatusData

location: class EMDKManager

\obj\Debug\android\src\mono\com\symbol\emdk\EMDKManager_StatusListenerImplementor.java

 

I'm using the Symbol.XamarinEMDK  Runtime Version  v4.0.30319,  Version  2.3.0.43

My application target framework is MonoAndroid v7.1.

 

The BarcodeSample1 works.

 

Is there anyone that can help me?

Thanks!

Francesco Scoma
I found the solution. There

I found the solution. There was two different emdk.jar used by javac to compile.

Thanks all the same!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Royce Meyer
Can you provide more

Can you provide more information on this? I'm seeing the same thing, and I'm not sure where to find the .jar files that javac uses to compile, etc. What did you do?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


patric blues
The "Cannot find symbol"


The "Cannot find symbol" errors generally occur when you try to reference an undeclared variable in your code. A "Cannot find symbol" error means that the compiler cannot do this. Your code appears to be referring to something that the compiler doesn't understand.

When your code is compiled, the compiler needs to work out what each and every identifier in your code means. As the compiler is going through the code it will find something and know what to do with it or not. Your Cannot find symbol error relates to the identifiers and means that Java cannot figure out what the "symbol" means.

The general causes for a Cannot find symbol error are things like:

  • Incorrect spelling.
  • Wrong case. Halo is different from halo.
  • Improper use of acceptable identifier values (letters, numbers, underscore, dollar sign), my-class is not the same as myclass.
  • No variable declaration or variable is outside of the scope you are referencing it in.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments