Android module(I created locally) System.loadlibrary can not find the .so fileHow can I get a list of locally installed Python modules?Why is the Android emulator so slow? How can we speed up the Android emulator?Cannot open layout in Android StudioGoogle mobile vision library 11.8.0 is not recognizedHow to display Map on emulatorKotlin fails to compile a libraryAndroid Studio 3.2.1 - New project fails to rundebug-apk work fine but sign apk release crash on main acitvityonActivityResult() is not working in fragment “ OUTPUT: You haven't picked Image ”Could not find class 'dalvik.system…'

Do moonless nights cause dim light to become darkness, and bright light (e.g. from torches) to become dim light?

Phase portrait of a system of differential equations

Went to a big 4 but got fired for underperformance in a year recently - Now every one thinks I'm pro - How to balance expectations?

Why does Shift-right says it is bound to right?

Feedback diagram

Why does BezierFunction not follow BezierCurve at npts>4?

Meaning of ギャップ in the following sentence

What is it exactly about flying a Flyboard across the English channel that made Zapata's thighs burn?

Is there any difference between "result in" and "end up with"?

On the expression "sun-down"

Any information about the photo with Army Uniforms

Generate random number in Unity without class ambiguity

Lower bound for the number of lattice points on high dimensional spheres

A verb for when some rights are not violated?

What does Argus Filch specifically do?

How does shared_ptr<void> know which destructor to use?

What is the reason behind water not falling from a bucket at the top of loop?

How to transform a function from f[#1] to f[x]

Why do player start with fighting for the corners in go?

Why is the Vasa Museum in Stockholm so Popular?

Why are sugars in whole fruits not digested the same way sugars in juice are?

Is law enforcement responsible for damages made by a search warrant?

How to win an all out war against ants

Deflecting lasers with lightsabers



Android module(I created locally) System.loadlibrary can not find the .so file


How can I get a list of locally installed Python modules?Why is the Android emulator so slow? How can we speed up the Android emulator?Cannot open layout in Android StudioGoogle mobile vision library 11.8.0 is not recognizedHow to display Map on emulatorKotlin fails to compile a libraryAndroid Studio 3.2.1 - New project fails to rundebug-apk work fine but sign apk release crash on main acitvityonActivityResult() is not working in fragment “ OUTPUT: You haven't picked Image ”Could not find class 'dalvik.system…'






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Thanks for view my question.
I have a local created module(testModule) which has been imported into my project(testProject), and the testModule has a java file needs to call System.loadLibrary("abc.so") file, but it crashed with reason could not find the abc.so.



What I have done:



  1. Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
    use.

  2. Add the "jniLibs/armeabi/libabc.so" into testProject main
    folder; no use.

  3. The testModule use this packagename: "com/test/module/"

  4. The testProject use this packagename: "com/test/app"

Here is the build.gradle for the testModule



apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'

android
compileSdkVersion 26

defaultConfig
minSdkVersion 18
targetSdkVersion 26
versionCode 1
versionName "1.0"


buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
api 'com.android.support:appcompat-v7:26.0.2'
api 'com.android.support:recyclerview-v7:26.0.2'




And here is the build.gradle for my app:



apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'realm-android'

android
compileSdkVersion 27
defaultConfig
applicationId "com.test.app"
minSdkVersion 19
targetSdkVersion 26
versionCode 3
versionName "1.0.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true

compileOptions
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation project(':testModule')


apply plugin: 'com.google.gms.google-services'


EDIT:
Finally I find out the reason. I have a folder named libs in the testProject, and after I deleted it, everything works.










share|improve this question
































    0















    Thanks for view my question.
    I have a local created module(testModule) which has been imported into my project(testProject), and the testModule has a java file needs to call System.loadLibrary("abc.so") file, but it crashed with reason could not find the abc.so.



    What I have done:



    1. Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
      use.

    2. Add the "jniLibs/armeabi/libabc.so" into testProject main
      folder; no use.

    3. The testModule use this packagename: "com/test/module/"

    4. The testProject use this packagename: "com/test/app"

    Here is the build.gradle for the testModule



    apply plugin: 'com.android.library'
    apply plugin: 'com.jakewharton.butterknife'

    android
    compileSdkVersion 26

    defaultConfig
    minSdkVersion 18
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"


    buildTypes
    release
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




    dependencies
    api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
    api 'com.android.support:appcompat-v7:26.0.2'
    api 'com.android.support:recyclerview-v7:26.0.2'




    And here is the build.gradle for my app:



    apply plugin: 'com.android.application'
    apply plugin: 'com.jakewharton.butterknife'
    apply plugin: 'realm-android'

    android
    compileSdkVersion 27
    defaultConfig
    applicationId "com.test.app"
    minSdkVersion 19
    targetSdkVersion 26
    versionCode 3
    versionName "1.0.3"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true

    compileOptions
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8

    buildTypes
    release
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




    dependencies
    api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
    implementation 'de.hdodenhof:circleimageview:2.1.0'
    implementation project(':testModule')


    apply plugin: 'com.google.gms.google-services'


    EDIT:
    Finally I find out the reason. I have a folder named libs in the testProject, and after I deleted it, everything works.










    share|improve this question




























      0












      0








      0








      Thanks for view my question.
      I have a local created module(testModule) which has been imported into my project(testProject), and the testModule has a java file needs to call System.loadLibrary("abc.so") file, but it crashed with reason could not find the abc.so.



      What I have done:



      1. Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
        use.

      2. Add the "jniLibs/armeabi/libabc.so" into testProject main
        folder; no use.

      3. The testModule use this packagename: "com/test/module/"

      4. The testProject use this packagename: "com/test/app"

      Here is the build.gradle for the testModule



      apply plugin: 'com.android.library'
      apply plugin: 'com.jakewharton.butterknife'

      android
      compileSdkVersion 26

      defaultConfig
      minSdkVersion 18
      targetSdkVersion 26
      versionCode 1
      versionName "1.0"


      buildTypes
      release
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




      dependencies
      api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
      api 'com.android.support:appcompat-v7:26.0.2'
      api 'com.android.support:recyclerview-v7:26.0.2'




      And here is the build.gradle for my app:



      apply plugin: 'com.android.application'
      apply plugin: 'com.jakewharton.butterknife'
      apply plugin: 'realm-android'

      android
      compileSdkVersion 27
      defaultConfig
      applicationId "com.test.app"
      minSdkVersion 19
      targetSdkVersion 26
      versionCode 3
      versionName "1.0.3"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      multiDexEnabled true

      compileOptions
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8

      buildTypes
      release
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




      dependencies
      api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
      implementation 'de.hdodenhof:circleimageview:2.1.0'
      implementation project(':testModule')


      apply plugin: 'com.google.gms.google-services'


      EDIT:
      Finally I find out the reason. I have a folder named libs in the testProject, and after I deleted it, everything works.










      share|improve this question
















      Thanks for view my question.
      I have a local created module(testModule) which has been imported into my project(testProject), and the testModule has a java file needs to call System.loadLibrary("abc.so") file, but it crashed with reason could not find the abc.so.



      What I have done:



      1. Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
        use.

      2. Add the "jniLibs/armeabi/libabc.so" into testProject main
        folder; no use.

      3. The testModule use this packagename: "com/test/module/"

      4. The testProject use this packagename: "com/test/app"

      Here is the build.gradle for the testModule



      apply plugin: 'com.android.library'
      apply plugin: 'com.jakewharton.butterknife'

      android
      compileSdkVersion 26

      defaultConfig
      minSdkVersion 18
      targetSdkVersion 26
      versionCode 1
      versionName "1.0"


      buildTypes
      release
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




      dependencies
      api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
      api 'com.android.support:appcompat-v7:26.0.2'
      api 'com.android.support:recyclerview-v7:26.0.2'




      And here is the build.gradle for my app:



      apply plugin: 'com.android.application'
      apply plugin: 'com.jakewharton.butterknife'
      apply plugin: 'realm-android'

      android
      compileSdkVersion 27
      defaultConfig
      applicationId "com.test.app"
      minSdkVersion 19
      targetSdkVersion 26
      versionCode 3
      versionName "1.0.3"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      multiDexEnabled true

      compileOptions
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8

      buildTypes
      release
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




      dependencies
      api fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
      implementation 'de.hdodenhof:circleimageview:2.1.0'
      implementation project(':testModule')


      apply plugin: 'com.google.gms.google-services'


      EDIT:
      Finally I find out the reason. I have a folder named libs in the testProject, and after I deleted it, everything works.







      android module jave






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 1:53







      Sunderr

















      asked Mar 27 at 1:00









      SunderrSunderr

      691 silver badge9 bronze badges




      691 silver badge9 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368291%2fandroid-modulei-created-locally-system-loadlibrary-can-not-find-the-so-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368291%2fandroid-modulei-created-locally-system-loadlibrary-can-not-find-the-so-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript