问题描述
更新:当我删除并重新安装包问题只保留在模拟器
Update: After I removed and reinstalled bundle problem only remains on emulator
我刚刚安装在我的Windows 8笔记本电脑上的Android开发包。我试图安装的第一个应用程序的Hello World()我的Nexus 7(2012)版本4.4.2,但它不工作。
I've just installed the android development bundle on my windows 8 laptop. I'm trying to install the first app "hello world" (http://developer.android.com/training/basics/firstapp/creating-project.html) to my Nexus 7 (2012) version 4.4.2 but its not working.
使用logcat的浏览器(同时构建正在发生),我可以看到它是报告:
Using the logcat viewer (whilst the build is taking place) I can see it is reporting:
无法加载memtrack模块(没有这样的文件或目录),其次是
加载失败memtrack模块:在运行时-2
的manifest.xml
manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myfirstapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.myfirstapp.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>
控制台输出:
[2014-04-04 15:18:35 - myFirstApplication] Dx
trouble writing output: already prepared
[2014-04-04 15:18:43 - myFirstApplication] ------------------------------
[2014-04-04 15:18:43 - myFirstApplication] Android Launch!
[2014-04-04 15:18:43 - myFirstApplication] adb is running normally.
[2014-04-04 15:18:43 - myFirstApplication] No Launcher activity found!
[2014-04-04 15:18:43 - myFirstApplication] The launch will only sync the application package on the device!
[2014-04-04 15:18:43 - myFirstApplication] Performing sync
[2014-04-04 15:18:44 - myFirstApplication] Automatic Target Mode: using device 'mydeviceinfo'
[2014-04-04 15:18:44 - myFirstApplication] Uploading myFirstApplication.apk onto device 'mydeviceinfo'
[2014-04-04 15:18:44 - myFirstApplication] Installing myFirstApplication.apk...
[2014-04-04 15:18:47 - myFirstApplication] Success!
[2014-04-04 15:18:47 - myFirstApplication] \myFirstApplication\bin\myFirstApplication.apk installed on device
[2014-04-04 15:18:47 - myFirstApplication] Done!
"
我已经开始在寻找一个类似的帖子Couldn't负载memtrack模块logcat的错误但我不能看到我需要为这种情况做
I've started looking at a similar post Couldn't load memtrack module Logcat Error but i can't see what i would need to do for this situation
推荐答案
如果有一个新的版本(比较你的manifest.xml中定义的版本code)在该目标仿真相同的应用程序,你会正如你所提到得到错误。
If there is a newer version (compare to the version code defined in your manifest.xml) of the same Application in the target emulator, you will get error as you mentioned.
无法加载memtrack模块(没有这样的文件或目录)
结果
加载失败memtrack模块:-2
这篇关于无法加载memtrack模块(没有这样的文件或目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!