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

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?