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;
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:
- Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
use. - Add the "jniLibs/armeabi/libabc.so" into testProject main
folder; no use. - The testModule use this packagename: "com/test/module/"
- 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
add a comment |
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:
- Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
use. - Add the "jniLibs/armeabi/libabc.so" into testProject main
folder; no use. - The testModule use this packagename: "com/test/module/"
- 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
add a comment |
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:
- Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
use. - Add the "jniLibs/armeabi/libabc.so" into testProject main
folder; no use. - The testModule use this packagename: "com/test/module/"
- 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
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:
- Add the "jniLibs/armeabi/libabc.so" into testModule main folder; no
use. - Add the "jniLibs/armeabi/libabc.so" into testProject main
folder; no use. - The testModule use this packagename: "com/test/module/"
- 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
android module jave
edited Mar 27 at 1:53
Sunderr
asked Mar 27 at 1:00
SunderrSunderr
691 silver badge9 bronze badges
691 silver badge9 bronze badges
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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