Android 共享用户不兼容,安装失败 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

Android Studio生成apk安装返回失败ErrorCode:-15、INSTALL_FAILED_TEST_ONLY 主要现象是,Android Studio编译apk,加上系统的签名之后无法安装,系统安装升级、adb instal apk、adb install -r apk等都返回错误,错误表现为返回ErrorCode:-15 , INSTALL_FAILED_TEST_ONLY错误。 阅读详情
Android 2.3.3  
Eclipse Version: 3.7.0  
LogCat  

Console 报错:


[2012-02-06 11:15:26 - taobao] ------------------------------
[2012-02-06 11:15:26 - taobao] Android Launch!
[2012-02-06 11:15:26 - taobao] adb is running normally.
[2012-02-06 11:15:26 - taobao] Performing com.taobao.htc.Start activity launch
[2012-02-06 11:15:26 - taobao] Automatic Target Mode: launching new emulator with compatible AVD 'taobao'
[2012-02-06 11:15:26 - taobao] Launching a new emulator with Virtual Device 'taobao'
[2012-02-06 11:15:34 - Emulator] emulator: emulator window was out of view and was recentred
[2012-02-06 11:15:34 - Emulator] 
[2012-02-06 11:15:34 - taobao] New emulator found: emulator-5554
[2012-02-06 11:15:34 - taobao] Waiting for HOME ('android.process.acore') to be launched...
[2012-02-06 11:15:35 - Emulator] Unknown savevm section type 95
[2012-02-06 11:16:24 - taobao] HOME is up on device 'emulator-5554'
[2012-02-06 11:16:24 - taobao] Uploading taobao.apk onto device 'emulator-5554'
[2012-02-06 11:16:29 - taobao] Installing taobao.apk...
[2012-02-06 11:16:55 - taobao] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
[2012-02-06 11:16:55 - taobao] Please check logcat output for more details.
[2012-02-06 11:16:55 - taobao] Launch canceled!

主要错误:

[2012-02-06 11:16:55 - taobao] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE


原因:虚拟机不支持添加共享用户类型。

解决办法:在AndroidManifest.xml取消对应的“android:sharedUserId”属性。

 android:sharedUserId="android.uid.***"
Android APK 签名冲突实战:从 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 到系统级重签名 本文深入解析Android APK签名冲突问题,特别是INSTALL_FAILED_SHARED_USER_INCOMPATIBLE错误的成因与解决方案。通过实战案例,详细介绍了无源码情况下的重签名流程,包括清除原有签名、获取系统签名文件以及使用signapk.jar和apksigner工具的正确方法,帮助开发者有效解决系统级APK签名兼容性问题。 阅读详情

相关推荐

从adb报错到成功安装:一次搞定INSTALL_FAILED_SHARED_USER_INCOMPATIBLE的全过程记录

本文详细记录了解决Android开发中INSTALL_FAILED_SHARED_USER_INCOMPATIBLE错误的完整过程。从错误分析到重签名方案实施,提供了使用adb工具和平台签名密钥解决APK安装兼容性问题的实用指南,帮助开发者快速定位和修复系统级签名冲突。

weixin_30938149的博客 214

引用dll导致的资源id冲突解决方法

<br />产生这个问题的根源在于应用程序与MFC规则DLL共享MFC DLL(或MFC扩展DLL)的程序总是默认使用EXE的资源,我们必须进行资源模块句柄的切换,其实现方法有三:<br />  方法一 在DLL接口函数中使用:<br />AFX_MANAGE_STATE(AfxGetStaticModuleState());<br />  我们将DLL中的接口函数ShowDlg改为:<br />void ShowDlg(void)<br />{ <br />//方法1:在函数开始处变更,在函数结束时恢复<

lala_achun的专栏 3973

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

问题:INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 解决:android:sharedUserId="android.uid.system"

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 解决办法

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 解决办法 将自开发的APP升级为系统级APP的办法

woyaoxianzaixiazai的博客 5484

Android APK签名异常无法安装-INSTALL-FAILED-SHARED-USER-INCOMPATIBLE 解决

Android APK签名异常无法安装-INSTALL-FAILED-SHARED-USER-INCOMPATIBLE 解决

【中软软件测试笔试题】中国软件与技术服务股份有限公司笔试一卷

请分别写出ISO7层架构,并分别说明TCP、UDP协议分别在处于哪一层,以及TCP、 UPD协议有什么区别。 答:7 应用层 6 表示层 5 会话层 4 传输层 3网络层 2 数据链路层 1 物理层 第四层;UDP是面向无连接、不可靠数据传输协议; TCP是面向连接、可靠数据传输协议......

Yanan990830的博客 1815

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE错误解决

Android中共享UID可以让多个应用使用通过Process ID可以共享内存空间外,链接:https://www.jianshu.com/p/077a05a81eca。商业转载请联系作者获得授权,非商业转载请注明出处。这是由于使用了sharedUserId后,使用不同的签名造成的。因为设置了shareid 造成安装apk时显示。删除android:sharedUserId。先别急着安装,可以先rebuild;卸载后重新安装apk。作者:small学生。

chuyouyinghe的专栏 6038

Qt 5.9.1 32位下,手把手搞定周立功CAN二次开发库的加载与配置(含常见错误排查)

本文详细介绍了在Qt 5.9.1 32位环境下配置周立功CAN二次开发库的完整流程,包括环境准备、项目配置、常见错误排查及性能优化建议。特别针对MinGW 32bit环境,提供了.pro文件的精准配置和DLL部署策略,帮助开发者快速解决库文件匹配、编译报错和运行时问题,实现高效的CAN总线通信开发。

weixin_28717431的博客 356

【 Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE】

Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

qq_45106034的博客 4076

给汽车芯片做‘体检’:手把手教你用IEC62380和SN29500估算功能安全失效率

本文详细介绍了如何使用IEC62380和SN29500标准估算汽车芯片的功能安全失效率,涵盖基础认知、方法论对比及实战计算。通过具体案例演示两种标准的应用流程,帮助工程师准确评估半导体器件的可靠性,确保符合ISO 26262标准要求。

weixin_28725553的博客 458

Allegro模块复用:从原理图到PCB的完整流程与关键细节

本文详细介绍了Allegro模块复用从原理图到PCB的完整流程与关键细节,包括DSN和MDD文件的创建、模块调用的实战技巧以及双向同步与版本控制方法。通过标准化处理和高级复用技巧,能显著提升PCB设计效率,减少重复工作时间。适用于智能硬件和工业控制等领域的工程师。

weixin_30252709的博客 332

Android共享用户不兼容,Android APK安装失败,共享用户不兼容 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE...

Android 2.3.3Eclipse Version: 3.7.0LogCatConsole 报错信息:[2012-02-05 13:25:26 - nokia] ------------------------------[2012-02-05 13:25:26 - nokia] Android Launch![2012-02-05 13:25:26 - nokia] adb is runn...

weixin_35457696的博客 452

基于OpenSSL的CA建立及证书签发(签发多域名/IP)

自签SSL证书(多域名/IP) 本文基于以下环境: 内核信息:Linux zabbix 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 系统版本:CentOS Linux release 7.6.1810 (Core) OpenSSL版本:OpenSSL 1.0.2k-fips 26 Jan 2017 【前言】 在基于OpenSSL的CA建立及证书签发一文中(后面统.

hobby云说 4645

Android共享用户不兼容,Android 共享用户不兼容,安装失败 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE...

Android 2.3.3Eclipse Version: 3.7.0LogCatConsole 报错:[2012-02-06 11:15:26 - taobao] ------------------------------[2012-02-06 11:15:26 - taobao] Android Launch![2012-02-06 11:15:26 - taobao] adb is run...

weixin_32999557的博客 457

【学习路线】 游戏客户端开发入门到进阶

游戏开发是一个交叉性极强的技术领域,对开发者提出了高维度的要求。作为初学者,不要急于求成,打牢基础、注重原理、勤于实践,你的成长将会非常快速而稳健。希望这份学习路线与书单能为你指明方向,迈出职业开发者的第一步。

hhw_hhw的博客 2127

CH7034B显示模块原理图设计,已量产

显示桥接板的价值,不在于简单把 RGB 排线换成另一种接口,而在于能否把并行视频、时钟、显示控制、模拟输出和辅助配置同时组织成稳定系统。当前这张 CH7034B 原理图就是这种思路:U3 CH7034B 作为核心桥接芯片,输入侧是 LCD_R0~R7、LCD_G0~G7、LCD_B0~B7、LCD_DE、LCD_HSYNC、LCD_VSYNC、LCD_CLK 与 LCD_BL,输出侧则通过 DAC0~DAC2 和 DDC_SC/DDC_SD 形成模拟显示接口边界。

不脱发的程序猿 161

Android APK安装失败,共享用户不兼容 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

Android 2.3.3 Eclipse Version: 3.7.0 LogCat   Console 报错信息: [2012-02-05 13:25:26 - nokia] ------------------------------ [2012-02-05 13:25:26 - nokia] Android Launch! [2012-02...

DebugLog的专栏 867

多算法数据预测——BP、ELM、LSTM、BiLSTM和SAELSTM,附Matlab源码

本文将为大家介绍基于BP、ELM、LSTM、BiLSTM和SAELSTM多种算法的数据预测,并提供相应的Matlab源码。SAELSTM算法是一种结合自动编码器和LSTM神经网络的深度学习方法,用于时间序列数据预测。ELM算法是一种单层前向神经网络,在单次训练过程中直接产生输出权重,从而具有快速学习和良好推广性能。多算法数据预测——BP、ELM、LSTM、BiLSTM和SAELSTM,附Matlab源码。总体来看,采用多种算法进行数据预测可以提高预测准确率,并可根据不同场景选择适合的算法。

qq_39605374的博客 860

shared user id / Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

<br />-----<br />在windows平台通过eclipse编译android源码中,如果编译Settings或者android manifest XML中 shared user id 包含android.uid.shared等系统权限的时候,则会报以下错误。<br /><br /> Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE<br /> Installation error: INSTALL_FAILED_SHARED_U

liluo1217的专栏 5569

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

[Android]运行项目报错The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

如果你的应用不需要与其他应用共享数据或资源,最简单的解决方法是从你的应用的 AndroidManifest.xml 文件中移除 sharedUserId 属性。如果你需要保留 sharedUserId(例如,你的应用确实需要与另一个使用相同 sharedUserId 的应用共享数据),则需要确保所有使用相同 sharedUserId 的应用都是用相同的证书签名的。如果适用,考虑从测试设备上卸载可能使用相同 sharedUserId 的其他应用,然后重新尝试安装你的应用。更改后,重新构建并安装你的应用。

Gamin 3902

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

Android Studio 安装应用失败总结

昨天公司刚发了测试机,我拿到一台魅蓝max.刚拆开手机。 今天插上数据线,run.结果居然安装失败。提示信息为:INSTALL_FAILED_USER_RESTRICTED。 顿时懵逼了,刚买的新机,就出现这个问题。无语啊。 刚开始还以为是Android studio的问题。结果模拟器跑了下,安装成功。 拿手机在其他人那跑了下,安装失败。好吧,手机的问题。 那到底是哪出了问题呢?我未知来源

Demi的博客 2万+

[Android Stduio]【解决】The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

问题:The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 解决: 把AndroidMenifest.xml里面的android:sharedUserId这项删除掉

H_O_W_E的专栏 4164

Android共享用户不兼容,Android APK装配失败,共享用户不兼容 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE...

Android 2.3.3Eclipse Version: 3.7.0LogCatConsole 报错信息:[2012-02-05 13:25:26 - nokia] ------------------------------[2012-02-05 13:25:26 - nokia] Android Launch![2012-02-05 13:25:26 - nokia] adb is runn...

weixin_42515796的博客 135
上一篇: Android开发问题:ActivityNotFoundException: Unable to find explicit activity class
下一篇: Android APK安装失败,共享用户不兼容 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
DebugLog
博客等级 码龄15年 10粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值