title: Getting AndroidJavaException in Unity when trying to call class constructor
body: <p>I am using this C# code in Unity to access Java classes is .aar lib:</p>
  
  <pre><code> AndroidJavaClass ajc;
      private AndroidJavaObject ajo;
      // Use this for initialization
      void Start () {
          ajc = new AndroidJavaClass("com.example.pc.superpoweredsdk.SuperPoweredPlayerWrapper");
          ajo = ajc.Get&lt;AndroidJavaObject&gt;("currentActivity");
      }
  </code></pre>
  
  <p>but I am getting this error in logcat on android:</p>
  
  <p>AndroidJavaException: java.lang.NoSuchFieldError: no "Ljava/lang/Object;" field "currentActivity" in class "Lcom/example/pc/superpoweredsdk/SuperPoweredPlayerWrapper;" or its superclasses
  07-01 12:31:08.640  1467  1485 I Unity   : java.lang.NoSuchFieldError: no "Ljava/lang/Object;" field "currentActivity" in class "Lcom/example/pc/superpoweredsdk/SuperPoweredPlayerWrapper;" or its superclasses</p>
  
  <p>this is Java class and functions I am trying to call:</p>
  
  <pre><code>public class SuperPoweredPlayerWrapper {
      public SuperPoweredPlayerWrapper(Context context) {
          int sampleRate = 44100;
          int bufferSize = 512;
          AssetFileDescriptor fd = context.getResources().openRawResourceFd(R.raw.lycka);
          int fileOffset = (int)fd.getStartOffset();
          int fileLength = (int)fd.getLength();
          try {
              fd.getParcelFileDescriptor().close();
          } catch (IOException e) {
              android.util.Log.d("", "Close error.");
          }
          SuperpoweredPlayer(sampleRate, bufferSize, context.getPackageResourcePath(), fileOffset, fileLength);
      }
  
      private native void SuperpoweredPlayer(int sampleRate, int bufferSize, String apkPath, int fileOffset, int fileLength);
      public native void playPause(boolean play);
      public native void setTempo(double value);
  
      static {
          System.loadLibrary("SuperpoweredExample");
      }
  }
  </code></pre>
  
  <p>How to call this class constructor with context parameter from Unity?</p>