嗨,当我尝试在模拟器或它向我们显示的任何设备中运行我的应用程序时
[2011-02-12 17:27:14 - FirstImage] ------------------------------
[2011-02-12 17:27:14 - FirstImage] Android Launch!
[2011-02-12 17:27:14 - FirstImage] adb is running normally.
[2011-02-12 17:27:14 - FirstImage] Performing com.gis.image.FirstImage activity launch
[2011-02-12 17:27:14 - FirstImage] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2011-02-12 17:27:16 - FirstImage] Uploading FirstImage.apk onto device '04038F041500E00A'
[2011-02-12 17:27:27 - FirstImage] Installing FirstImage.apk...
[2011-02-12 17:27:35 - FirstImage] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2011-02-12 17:27:35 - FirstImage] Please check logcat output for more details.
[2011-02-12 17:27:35 - FirstImage] Launch canceled!
在 logcat 中显示为
02-12 16:53:53.685: ERROR/CalWidget(3574): Hardware.isScreenOn=false but App.bIsScreenOn=true
02-12 16:54:13.679: ERROR/WeatherEngine(1403): queryString = http://motor.accu-weather.com/widget/motor/weather-data.asp?location=ASI|IN|IN031|MADURAI&metric=1
02-12 16:55:13.056: ERROR/smtp(1485): is not yahoo com
02-12 16:55:14.423: ERROR/smtp(1485): is not yahoo com
02-12 17:19:54.212: ERROR/WeatherEngine(1403): queryString = http://motor.accu-weather.com/widget/motor/weather-data.asp?location=ASI|IN|IN031|MADURAI&metric=1
02-12 17:21:25.775: ERROR/ConnectivityService(1276): connected default network is not mActiveDefaultNetwork!
02-12 17:21:25.783: ERROR/WeatherEngine(1403): queryString = http://motor.accu-weather.com/widget/motor/weather-data.asp?location=ASI|IN|IN031|MADURAI&metric=1
02-12 17:21:26.791: ERROR/WeatherEngine(1403): queryString = http://motor.accu-weather.com/widget/motor/weather-data.asp?location=ASI|IN|IN031|MADURAI&metric=1
02-12 17:24:34.783: ERROR/WeatherEngine(1403): Error Happen
02-12 17:24:34.783: ERROR/WeatherWidgetProvider(1403): failed to get weather info from server
02-12 17:24:39.791: ERROR/WeatherUpdateService(1403): Failed to get Weather info, retryCount=2
02-12 17:24:39.799: ERROR/WeatherEngine(1403): queryString = http://motor.accu-weather.com/widget/motor/weather-data.asp?location=ASI|IN|IN031|MADURAI&metric=1
02-12 17:25:25.463: ERROR/smtp(1485): is not yahoo com
02-12 17:25:26.822: ERROR/smtp(1485): is not yahoo com
02-12 17:31:45.471: ERROR/PackageManager(1276): Couldn't copy package file to temp file.
02-12 17:31:45.580: ERROR/AndroidRuntime(3715): ERROR: thread attach failed
02-12 17:32:30.580: ERROR/PackageManager(1276): Couldn't copy package file to temp file.
02-12 17:32:30.689: ERROR/AndroidRuntime(3729): ERROR: thread attach failed
错误是什么,请帮助我
最佳答案
它只是显示:无法检测设备兼容性
和安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE
。
1) 确保您的设备兼容或已正确安装 USB 驱动程序。
2) 确保您的设备有足够的存储空间来安装应用程序。
3) 尝试在手动模式
下运行您的应用程序。为此,只需转到运行>>运行配置...
选择您的项目
,然后在左侧窗口中单击目标
选项卡。这里将部署目标选择模式
设置为手动
。然后单击运行
。将打开一个新窗口 Android Device Chooser
。在这里您可以在您想要的设备上运行您的应用程序。
关于java - Android 设备中的运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4977959/