Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Rudiment

Pages: [1]
1
Android / 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).

Pages: [1]