Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

NoClassDefFoundError and UnsatisfiedLinkError when linking JavaCV in ANE for Android

Explorer ,
Aug 11, 2014 Aug 11, 2014

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!

TOPICS
ActionScript
546
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation