- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我几天前在 Google Play 中启动了一个应用程序,然后决定进行更新并将其也推出。我在我的设备上加载了原始版本(主屏幕上也有一个启动图标),当更新可用时,我也使用了它,并且在使用启动图标时我开始看到一条消息:
当我看到这条消息时,我将我的手机连接到电脑上并获取了正在发生的事情的日志:
I/InputDispatcher( 379): Delivering touch to current input target: action: 0x1
I/ActivityManager( 379): START {intent.toShortString} from pid 711
D/PowerManagerService( 379): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT fre
quency : 1026000 uid : 1000 pid : 379 tag : ActivityManager
W/ActivityManager( 379): mDVFSLock.acquire()
W/ActivityManager( 379): Permission denied: checkComponentPermission() owningUi
d=10153
W/ActivityManager( 379): Permission Denial: starting Intent { act=android.inten
t.action.MAIN cat=[ xxx ] flg=0x10000000 pkg=com.gmail.apps.works.ren.tictactoe
cmp=xxxx bnds=[0,338][120,488] } from ProcessRecord{41cba100 711:com.sec.android
.app.twlauncher/10001} (pid=711, uid=10001) not exported from uid 10153
E/Launcher( 711): Launcher does not have the permission to launch Intent { act=
android.intent.action.MAIN cat=[ xxx ] flg=0x10000000 pkg=com.gmail.apps.works.r
en.tictactoe cmp=xxxx bnds=[0,338][120,488] }. Make sure to create a MAIN intent
-filter for the corresponding activity or use the exported attribute for this ac
tivity.
权限被拒绝?经过一番研究,我发现 this link解释我需要 receiver
或 直接在 Activity 下的 export
权限,但根据各种答案,我不清楚这将解决我的问题。
现在,如果我直接从我的计算机上运行/调试,就没有问题,主屏幕启动器和菜单启动器都按预期工作。此外,如果我卸载该应用程序并下载一个新副本,则不会出现任何问题。
我唯一看到这个问题是在安装了以前的版本(和主屏幕启动器图标)后从 Google Play 下载更新时。
那么我该如何重现这种情况,以便在不将更多(可能)损坏的内容推送到 Google Play 商店的情况下测试不同的修复选项?
最佳答案
这就是我遇到的问题,使用 Eclipse 进行正常调试/测试在这里不起作用,因为它会卸载以前的(不同签名的)版本,据我所知,您无法从 Google Play 下载同一应用程序的不同旧版本即使我想尝试那条路线..所以这就是我设法解决它的方法:
备份,备份,备份!
我总是在推送之前保存我的 .apk 副本以及开发环境的快照,所以我有一些以前的副本。
我发现如果我手动卸载该应用程序,我现在可以通过以下方式安装我的旧版本之一:
$ mv <myapp>.apk.v1 <myapp>.apk
$ adb install <myapp>.apk
安装后,我制作了一个旧版本的主屏幕启动器。接下来我发现我可以使用 -r
option from adb install通过安装同一 apk 的新版本来执行“更新”:
$ mv <myapp>.apk.v2 <myapp>.apk
$ adb install -r <myapp>.apk
在保留旧数据(包括旧主屏幕启动器图标)的同时重新安装了现有应用程序。
现在我可以重现我的问题了。最后一步是将各种修复应用到我的项目(在 Eclipse 中)构建它们并导出(创建一个签名的 .apk 就像我在 Google Play 上发布的一样)然后使用 adb install 安装“更新” - r
顺便说一下,添加:
android:exported="true"
我的应用程序的 Activity 对我有用。希望这对其他人有帮助!
关于android - 如何测试仅在更新后出现的 "Application is not installed"问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23250523/
我将从 ColdFusion 8 迁移到 ColdFusion 10。 目前,在我的Unix根目录下,我只有1个Application.cfm,在这个根目录下我有大约10个子目录(以前的程序员就是这样
这个问题在这里已经有了答案: Is it possible to write a program in Java without main() using JDK 1.7 or higher? [d
我是编写 Windows 服务应用程序的新手,并且遇到了问题。 我用 Delphi 编写了一个普通的 Windows 应用程序来检查和调试代码的主要部分,现在必须将其转换为 NT 服务。 我的代码必须
我在 Visual Studio 2013 中运行它。 对于 Application.Current.Shutdown 我得到: “Application”是“System.Windows.Appli
给定以下 C++ 代码“mini.cpp”: #include "iostream" using namespace std; int main() { cout << "Hello Worl
什么是“服务器应用程序”?我被要求写一篇关于“服务器应用程序”中的错误的文章,但我不熟悉确切的术语。它们只是网络应用程序,还是其他东西? 最佳答案 “服务器应用程序”是一种应用程序,它等待来自其他应用
JavaFX 应用程序类必须扩展 javafx.application.Application package automationFramework import java.util.concurr
I have implemented deeplinking in my application that open my app (if available) but my app opens
我被困在一个非常基本的问题上。我使用 JavaFX 创建了一个简单的 hello world 程序,它在 JDK 1.8 上运行良好。但是当我切换到 JDK-11 时,它会抛出以下异常: Error:
我可以让Application Insights显示正在运行的每小时使用情况日志,但是有没有一种方法可以每小时显示一次平均使用情况,以查看必须在一天中的哪个时段使用网站? 最佳答案 在您的资源的概览
有谁知道为什么在.NET应用程序中实现Application Insights时不会收集用户代理信息,却能够在浏览器中收集统计信息? 我很希望能够针对特定的用户代理字符串过滤出请求,但是看起来我无法看
我有多个应用程序使用 Application Insights for Production Data。我正在尝试使用 City 遥测字段来映射我们当前的用户。这些数据的跟踪似乎非常不一致,并且在大多
有没有办法在 ASP.NET Web 应用程序中禁用 Application Insights?假设我想关闭生产中运行的应用程序中的所有数据收集。 最佳答案 如果 ikey 在 Application
如何在 Azure Application Insights 中将时差转换为毫秒 let startTime = todatetime('2017-05-15T17:02:23.7148691Z');
我正在修改一个用 Coldfusion 编码的现有 Web 应用程序。在现有代码中,大部分文件夹包含一个 Application.cfm 文件,该文件设置应用程序变量 但是,我对这些应用程序的部分修改
我在 Application Insights Analytics 中有一些数据,它有一个动态对象作为自定义维度的属性。例如: | timestamp | name
首先,我需要的是-n WebBrowser-s,每个都在自己的窗口中执行自己的工作。用户应该能够看到所有这些内容,或者仅看到其中一个(或不显示任何内容),并且能够对每一个执行命令。有一个主要形式,没有
我已收到以下代码以添加到封闭代码(受密码保护)中,以便可以发现错误。 On Error Resume Next: Err.Clear Application.SetOption "Error Trap
我正在使用 Delphi 7。我试图在非 VCL 单元中添加一个调用“application.processmessages”的过程。我收到错误“未声明的标识符:应用程序”。 如何从非 vcl 单元引
考虑一个非外汇现有应用程序,我们将其称为Business。 Business 公开一个 Model 对象,该对象又公开一些属性。 Model 还接受这些属性的监听器。 我的问题是关于向此类应用程序添加
我是一名优秀的程序员,十分优秀!