这是我的项目:https://github.com/kenpeter/my_hak_news,这是直接拷贝https://github.com/grigio/HAgnostic-News.
Git clone https://github.com/kenpeter/my_hak_news,然后运行react-native run-android
得到此错误:
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.hagnosticnews signatures do not match the previously installed version; ignoring!
Run Code Online (Sandbox Code Playgroud)
相关问题:https://github.com/grigio/HAgnostic-News/issues/1,我遵循各种方式,但无法解决此问题.
我正在尝试从应用程序模拟器终端执行此命令(您可以在谷歌播放中找到它)在这个应用程序中我写su并按enter,所以写道:
screenrecord --time-limit 10 /sdcard/MyVideo.mp4
然后再次按下enter并使用android kitkat的新功能开始录制屏幕.
所以,我尝试使用以下方法从java执行相同的代码:
Process su = Runtime.getRuntime().exec("su");
Process execute = Runtime.getRuntime().exec("screenrecord --time-limit 10 /sdcard/MyVideo.mp4");
Run Code Online (Sandbox Code Playgroud)
但是不起作用,因为没有创建文件.显然我在安装了android kitkat的root设备上运行.问题出在哪儿?我怎么解决?因为从终端模拟器工作和Java不?
我使用Eclipse创建了ApiDemos项目 - New Project - Sample命令.试图在Android模拟上执行它,我遇到了安装错误.然后我在文件资源管理器DDMS中打开了data/app目录,并删除了名称从ApiDemos开始的两个文件(可能这是不正确的,但这已经完成).现在,尝试执行我的ApiDemos项目,我有:
[2011-11-15 16:23:19 - ApiDemos] Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE [2011-11-15 16:23:19 - ApiDemos] Please check logcat output for more details. [2011-11-15 16:23:19 - ApiDemos] Launch canceled!
logcat的:
package com.example.android.apis signatures do not match the previously installed version, ignoring!
现在可以纠正这个问题吗?我知道我可以重新创建模拟器,但我想用现有的模拟器来解决这个问题,只是为了知道它应该如何完成.