Migrating to android Q app install failedIs there a way to run Python on Android?How to save an Android Activity state using save instance state?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?Is there a unique Android device ID?What is 'Context' on Android?Android error: Failed to install *.apk on device *: timeoutProper use cases for Android UserManager.isUserAGoat()?App installation failed with message: Failed to commit install sessionTargeting SDK Android Q results in Failed to finalize session : INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2
Team goes to lunch frequently, I do intermittent fasting but still want to socialize
Yajilin minicubes: the Hullabaloo, the Brouhaha, the Bangarang
What word can be used to describe a bug in a movie?
Creating a new project with Laravel throws an exception
Replace data between quotes in a file
What is the best way to cause swarm intelligence to be destroyed?
In the movie Harry Potter and the Order or the Phoenix, why didn't Mr. Filch succeed to open the Room of Requirement if it's what he needed?
Does two puncture wounds mean venomous snake?
In a topological space if there exists a loop that cannot be contracted to a point does there exist a simple loop that cannot be contracted also?
How to execute python script by terminal?
Is The Lion King live action film made in motion capture?
Can a PC attack themselves with an unarmed strike?
How to identify the wires on the dimmer to convert it to Conventional on/off switch
Does a code snippet compile? Or does it gets compiled?
sed delete all the words before a match
Infeasibility in mathematical optimization models
Acceptable to cut steak before searing?
Best gun to modify into a monsterhunter weapon?
How do I calculate the difference in lens reach between a superzoom compact and a DSLR zoom lens?
Pandas: fill one column with count of # of obs between occurrences in a 2nd column
During the Space Shuttle Columbia Disaster of 2003, Why Did The Flight Director Say, "Lock the doors."?
Ex-contractor published company source code and secrets online
Why was CPU32 core created, and how is it different from 680x0 CPU cores?
English - Acceptable use of parentheses in an author's name
Migrating to android Q app install failed
Is there a way to run Python on Android?How to save an Android Activity state using save instance state?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?Is there a unique Android device ID?What is 'Context' on Android?Android error: Failed to install *.apk on device *: timeoutProper use cases for Android UserManager.isUserAGoat()?App installation failed with message: Failed to commit install sessionTargeting SDK Android Q results in Failed to finalize session : INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have migrated my android project to android q in android studio canary but whenever I try to run my project on my Google Pixel 2. I am getting this error I have also uninstalled the previous version of the app. I have done everything clean project rebuild invalidate the cache, but still see below error log:
11:40 AM Failed to commit install session 1536794838 with command cmd package install-commit 1536794838. Error: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2
11:40 AM Session 'app': Changes were not applied.
The application could not be installed: UNKNOWN_ERROR
Retry
android androidq
add a comment |
I have migrated my android project to android q in android studio canary but whenever I try to run my project on my Google Pixel 2. I am getting this error I have also uninstalled the previous version of the app. I have done everything clean project rebuild invalidate the cache, but still see below error log:
11:40 AM Failed to commit install session 1536794838 with command cmd package install-commit 1536794838. Error: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2
11:40 AM Session 'app': Changes were not applied.
The application could not be installed: UNKNOWN_ERROR
Retry
android androidq
add a comment |
I have migrated my android project to android q in android studio canary but whenever I try to run my project on my Google Pixel 2. I am getting this error I have also uninstalled the previous version of the app. I have done everything clean project rebuild invalidate the cache, but still see below error log:
11:40 AM Failed to commit install session 1536794838 with command cmd package install-commit 1536794838. Error: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2
11:40 AM Session 'app': Changes were not applied.
The application could not be installed: UNKNOWN_ERROR
Retry
android androidq
I have migrated my android project to android q in android studio canary but whenever I try to run my project on my Google Pixel 2. I am getting this error I have also uninstalled the previous version of the app. I have done everything clean project rebuild invalidate the cache, but still see below error log:
11:40 AM Failed to commit install session 1536794838 with command cmd package install-commit 1536794838. Error: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2
11:40 AM Session 'app': Changes were not applied.
The application could not be installed: UNKNOWN_ERROR
Retry
android androidq
android androidq
edited Mar 27 at 7:54
Tanveer Munir
1,7301 gold badge5 silver badges22 bronze badges
1,7301 gold badge5 silver badges22 bronze badges
asked Mar 27 at 6:53
Mateen ChaudhryMateen Chaudhry
1613 silver badges17 bronze badges
1613 silver badges17 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
try to add below in your manifest.xml
inside application
tag
android:extractNativeLibs="false"
This flag is to indicate whether or not the package installer should extract the native libraries from the APK to the filesystem. If set to false
, then your native libraries must be page aligned and stored uncompressed in the APK. Hence, after setting it to false
, you should also have below options configured in your build.gradle
packagingOptions
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
doNotStrip "*/x86_64/*.so"
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
1
Yes, i saw that. Just be aware that marking it as true meansthe package installer will extract the native libraries from the APK to the filesystem
. By setting it tofalse
and applying thepackagingOptions
said above should also work.
– shizhen
Mar 27 at 7:47
add a comment |
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%2f55371377%2fmigrating-to-android-q-app-install-failed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
try to add below in your manifest.xml
inside application
tag
android:extractNativeLibs="false"
This flag is to indicate whether or not the package installer should extract the native libraries from the APK to the filesystem. If set to false
, then your native libraries must be page aligned and stored uncompressed in the APK. Hence, after setting it to false
, you should also have below options configured in your build.gradle
packagingOptions
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
doNotStrip "*/x86_64/*.so"
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
1
Yes, i saw that. Just be aware that marking it as true meansthe package installer will extract the native libraries from the APK to the filesystem
. By setting it tofalse
and applying thepackagingOptions
said above should also work.
– shizhen
Mar 27 at 7:47
add a comment |
try to add below in your manifest.xml
inside application
tag
android:extractNativeLibs="false"
This flag is to indicate whether or not the package installer should extract the native libraries from the APK to the filesystem. If set to false
, then your native libraries must be page aligned and stored uncompressed in the APK. Hence, after setting it to false
, you should also have below options configured in your build.gradle
packagingOptions
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
doNotStrip "*/x86_64/*.so"
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
1
Yes, i saw that. Just be aware that marking it as true meansthe package installer will extract the native libraries from the APK to the filesystem
. By setting it tofalse
and applying thepackagingOptions
said above should also work.
– shizhen
Mar 27 at 7:47
add a comment |
try to add below in your manifest.xml
inside application
tag
android:extractNativeLibs="false"
This flag is to indicate whether or not the package installer should extract the native libraries from the APK to the filesystem. If set to false
, then your native libraries must be page aligned and stored uncompressed in the APK. Hence, after setting it to false
, you should also have below options configured in your build.gradle
packagingOptions
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
doNotStrip "*/x86_64/*.so"
try to add below in your manifest.xml
inside application
tag
android:extractNativeLibs="false"
This flag is to indicate whether or not the package installer should extract the native libraries from the APK to the filesystem. If set to false
, then your native libraries must be page aligned and stored uncompressed in the APK. Hence, after setting it to false
, you should also have below options configured in your build.gradle
packagingOptions
doNotStrip "*/armeabi/*.so"
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/x86/*.so"
doNotStrip "*/x86_64/*.so"
edited Mar 27 at 7:39
answered Mar 27 at 7:30
shizhenshizhen
5,6909 gold badges21 silver badges47 bronze badges
5,6909 gold badges21 silver badges47 bronze badges
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
1
Yes, i saw that. Just be aware that marking it as true meansthe package installer will extract the native libraries from the APK to the filesystem
. By setting it tofalse
and applying thepackagingOptions
said above should also work.
– shizhen
Mar 27 at 7:47
add a comment |
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
1
Yes, i saw that. Just be aware that marking it as true meansthe package installer will extract the native libraries from the APK to the filesystem
. By setting it tofalse
and applying thepackagingOptions
said above should also work.
– shizhen
Mar 27 at 7:47
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
by setting it true it helps can you explain why it happening?
– Mateen Chaudhry
Mar 27 at 7:32
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
@MateenChaudhry, see my updated answer.
– shizhen
Mar 27 at 7:40
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
android:extractNativeLibs="true" is working not false
– Mateen Chaudhry
Mar 27 at 7:43
1
1
Yes, i saw that. Just be aware that marking it as true means
the package installer will extract the native libraries from the APK to the filesystem
. By setting it to false
and applying the packagingOptions
said above should also work.– shizhen
Mar 27 at 7:47
Yes, i saw that. Just be aware that marking it as true means
the package installer will extract the native libraries from the APK to the filesystem
. By setting it to false
and applying the packagingOptions
said above should also work.– shizhen
Mar 27 at 7:47
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with 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%2f55371377%2fmigrating-to-android-q-app-install-failed%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