我是Android开发的新手。
我做了一个非常简单的应用程序。当我在AVD上运行时,它失败了。
错误如下: -
[2014-03-22 22:46:43 - Calculator] ------------------------------
[2014-03-22 22:46:43 - Calculator] Android Launch!
[2014-03-22 22:46:43 - Calculator] adb is running normally.
[2014-03-22 22:46:43 - Calculator] Performing com.jhamb.calculaor.MainActivity activity launch
[2014-03-22 22:46:46 - Calculator] Launching a new emulator with Virtual Device 'Nexus4_AVD'
[2014-03-22 22:47:17 - Emulator] emulator: emulator window was out of view and was recentered
[2014-03-22 22:47:17 - Emulator]
[2014-03-22 22:47:17 - Calculator] New emulator found: emulator-5554
[2014-03-22 22:47:17 - Calculator] Waiting for HOME ('android.process.acore') to be launched...
[2014-03-22 22:53:27 - Calculator] HOME is up on device 'emulator-5554'
[2014-03-22 22:53:27 - Calculator] Uploading Calculator.apk onto device 'emulator-5554'
[2014-03-22 22:53:28 - Calculator] Installing Calculator.apk...
[2014-03-22 22:55:36 - Calculator] Failed to install Calculator.apk on device 'emulator-5554!
[2014-03-22 22:55:36 - Calculator] (null)
[2014-03-22 22:55:36 - Calculator] Launch canceled!
AVD,我正在使用: -
我在SO上关注了很多帖子。但没有人解决了我的问题。
我尝试使用以下步骤解决上述问题: -
- >我通过命令行adb kill-server adb start-server
- >设置wipe user data
请帮我解决上述问题。我坚持过去5个小时。
AndroidManifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jhamb.calculaor"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.jhamb.calculaor.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
当我将RAM更改为1072 MB时,它会显示以下错误
[2014-03-22 23:56:24 - Calculator] Launching a new emulator with Virtual Device 'nexus-4-api-19'
[2014-03-22 23:57:01 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2014-03-22 23:57:01 - Emulator] NAND: could not write file C:\Users\AMPLIF~1\AppData\Local\Temp\\AndroidEmulator\TMP46B6.tmp, No space left on device
SDK Manager
答案 0 :(得分:0)
我发布了如何配置我的nexus 4模拟器的屏幕截图,这在我的系统上工作正常。我希望这有帮助。 可能你只是给你的模拟器留下了很少的记忆:512MB对我来说似乎很低!
答案 1 :(得分:0)
通常这只是因为模拟器没有足够快地启动。尝试重新启动而不必在每次启动之间关闭模拟器。