Skip to main content
Participating Frequently
August 11, 2014
Question

NoClassDefFoundError and UnsatisfiedLinkError when linking JavaCV in ANE for Android

  • August 11, 2014
  • 0 replies
  • 566 views

Hi I'm trying to build an ANE to use JavaCV from an Air project on Android.

I can compile the ANE just fine but at run time, i can see these errors in log cat:

W/dalvikvm(15299): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/bytedeco/javacpp/avutil;

W/dalvikvm(15299): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lorg/bytedeco/javacpp/avformat;

and below is platform.xml where I believe I am linking the library as needed.

<platform xmlns="http://ns.adobe.com/air/extension/4.0">

  <packagedDependencies>

   <packagedDependency>ffmpeg-android-arm.jar</packagedDependency>

  <packagedDependency>ffmpeg.jar</packagedDependency>

  <packagedDependency>javacpp.jar</packagedDependency>

  <packagedDependency>javacv.jar</packagedDependency>

  <packagedDependency>opencv-android-arm.jar</packagedDependency>

  <packagedDependency>opencv.jar</packagedDependency>

  </packagedDependencies>

  <packagedResources></packagedResources>

</platform>

Any idea how to make sure these 3rd party libraries are linked?

Thanks!

This topic has been closed for replies.