Android:坏调用:在uid 10121下指定pacakge ****,但它真的是-1 [英] Android: Bad call: specified pacakge **** under uid 10121 but it is really -1

查看:1039
本文介绍了Android:坏调用:在uid 10121下指定pacakge ****,但它真的是-1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在三星Galaxy Nexus(Android 4.3,rooted)上运行我的应用程序时,我的catlog中收到一个奇怪的警告。我正在手机上使用logcat阅读日志。



背景:最近我使用Eclipse的重构工具更改了我的项目的包名称。我也经历了每个文件,并手动搜索了旧的包名称;特别是,我更新了AndroidManifest.xml中的所有引用。我也用Windows手动搜索包名,找到一些无关的引用,并更新它们。我的项目中有NOWHERE引用旧的包名称。我也从头开始清理和重建项目。



这是警告:

  11-25 14:20:35.684 
错误调用:在uid 10121下指定的包com.old.package.name.appname,但它真的是-1。

在catlog的左列中,错误的标题是:

  374 
AppOps

此警告几乎立即刷新,有时每毫秒刷新多次,并完全填满我的日志。



奇怪的是,当我安装我的应用程序华硕TF301(4.2,rooted),我没有得到这个警告。当我在PC上的一个模拟器上运行它(从Eclipse启动),我没有得到这个警告。

解决方案

愚弄了一段时间,我注意到我的logcat显示完全相同的事情,即使应用程序被卸载,这导致我相信以前的版本(与旧的包名称)尚未完全卸载。所以我重新启动了我的手机,现在问题已经消失了。所以,这是解决方案:重新启动!


I'm receiving a strange warning in my catlog when I run my app on my Samsung Galaxy Nexus (Android 4.3, rooted). I'm reading the log using logcat on the phone itself.

Background: recently I changed the package name for my project, using Eclipse's refactoring tool. I also went through each file and manually searched for the old package name; in particular, I updated all the references in AndroidManifest.xml. I also used Windows to manually search for the package name, found a few extraneous references, and updated them. There is NOWHERE in my project that references the old package name. I also cleaned and rebuilt the project from scratch.

Here's the warning:

11-25 14:20:35.684
Bad call: specified package com.old.package.name.appname under uid 10121 but it is really -1.

And the heading for the error, in the left column of catlog, is:

374
AppOps

This warning refreshes itself nearly instantly, sometimes multiple times per millisecond, and completely fills my log.

The odd thing is, when I install the app on my ASUS TF301 (4.2, rooted), I don't get this warning. When I run it on an emulator on my PC (launching from Eclipse), I don't get this warning.

解决方案

After fooling around with it for a while, I noticed my logcat was showing the exact same thing even when the app was uninstalled, which led me to believe that the prior version (with the old package name) hadn't completely been uninstalled. So I restarted my phone and now the problem has disappeared. So, that's the solution: restart!

这篇关于Android:坏调用:在uid 10121下指定pacakge ****,但它真的是-1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆