Author Topic: Android Java App crashes on loading chilkat library  (Read 153 times)

Rudiment

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Android Java App crashes on loading chilkat library
« on: May 21, 2018, 10:47:53 AM »
Hello, I am using the latest Android Java Chilkat version 9.05.72.
Everything is placed correctly as far as I can see

Folders:

-> java, com, chilkatsoft, *.java (108 files)

-> jniLibs, arm64-v8a, armeabi-v7a, etc .. all having the "libchilkat.so"

My Code works as long as I don't try to make my call to load the library.

Code:

   
Code: [Select]
package ${YYAndroidPackageName};
   
    import ${YYAndroidPackageName}.R;
    import com.yoyogames.runner.RunnerJNILib;
   
    import android.app.Activity;
    import com.chilkatsoft.*;
     
   
    public class getdata extends Activity {
        /** Called when the activity is first created. */
   
       
       public String testing()
      {
      return "working - we are in testing"; //works if not lib loaded
     
      }
     
      public String chilversion()
      {
          CkCrypt2 crypt = new CkCrypt2(); //never reaches this function because pre-crash
      String cv;
      cv = crypt.version();
     
      return cv; //should return version as shown on example site
      }
   
       
     
        static {
           
            System.loadLibrary("chilkat"); //as soon as implemented makes app scrash om startup
        }
       
   
    }


EDIT:

same Problem by using latest Android Studio with very Little basic code, compiling for minimum Target Api 16 (regardless of above yoyo runner).
« Last Edit: May 21, 2018, 10:49:39 AM by Rudiment »

Rudiment

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Android Java App crashes on loading chilkat library
« Reply #1 on: May 30, 2018, 06:43:00 AM »
I figured out all is working well as long as I am on a device that is below armv8a.
But i did add the latest library and java (com) to the project (armv8a).

The app crashes if i create my apk file and start it after i did install on my device
(Samsung S7 Android 7.0 Armv8a) directly via apk.

If I install from compiler directly (with active debugging) it does not crash and is installed correctly.

For J5 and other phones it works. But they are using armv7a mainly!