error opening trace file: No such file or directory (2)

Ankit Jain picture Ankit Jain · Jul 12, 2012 · Viewed 143.8k times · Source

I am getting the above error:

error opening trace file: No such file or directory (2)

when I run my android application on the emulator. Can someone tell me what could be the possible reason for this?

I am using android-sdk-20 and below lines are added to AndroidManifest.xml

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" />

I have also added the line:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

since I thought that there may be some issue with writing to the sd card.

Answer

Aurumque picture Aurumque · Aug 6, 2013

It happens because you have not installed the minSdkVersion or targetSdkVersion in you’re computer. I've tested it right now.

For example, if you have those lines in your Manifest.xml:

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />

And you have installed only the API17 in your computer, it will report you an error. If you want to test it, try installing the other API version (in this case, API 8).

Even so, it's not an important error. It doesn't mean that your app is wrong.

Sorry about my expression. English is not my language. Bye!