Couldn't load memtrack module (No such file or directory)

Deadly 提交于 2019-11-28 03:24:01

问题


Update: After I removed and reinstalled bundle problem only remains on emulator

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.

Using the logcat viewer (whilst the build is taking place) I can see it is reporting:

"Couldn't load memtrack module (No such file or directory)" followed by " failed to load memtrack module: -2 at run time."

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>

Console output:

[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!
"

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


回答1:


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.

Couldn't load memtrack module (No such file or directory)
failed to load memtrack module: -2




回答2:


I faced this error several days ago. if your real device or emulator already contains older version of application you are trying to run, then uninstall this old version and run again.It has resolved my issue.




回答3:


I was facing the same issue, make sure you're running the project in the right emulator, sometimes Eclipse doesn't ask you about the emulator that it will use.

Go to the Run menu, Run Configurations, in the left list pick Android Application and then the application that you're trying to run. In the left panel pick the "Target" tab and choose the option "Always prompt to pick device" and try to run again.

Make sure to pick the right emulator, in my case I had recently installed blue stacks and Eclipse was trying to run the application on it without prompting me, instead running it on the regular emulator.




回答4:


I got the same error because of a missing Semicolon in the java file ";". So do check for proper closing of the code Statements



来源:https://stackoverflow.com/questions/22862929/couldnt-load-memtrack-module-no-such-file-or-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!