开发者

Problem installing my Android apps

I don't know what is happening with my apps. It never happened before. I see errors like this:

[2011-04-10 11:53:22 - Rocket Project] Installation error: INSTALL_PARSE_FAILED_M开发者_Go百科ANIFEST_MALFORMED

[2011-04-10 11:53:22 - Rocket Project] Please check logcat output for more details.

[2011-04-10 11:53:22 - Rocket Project] Launch canceled!

How can I resolve this?


If i'm not mistaken, there are some "new line" characters in your Manifest. Example you declare new Activity:

<activity android:name=".Activities.AAWidget" android:theme="@android:style/Theme.Dialog"
    android:screenOrientation="portrait">

Ok, if so, try to make all these declarations in only 1 line:

<activity android:name=".Activities.AAWidget" android:theme="@android:style/Theme.Dialog" android:screenOrientation="portrait">


It will be great If you can post the logcat output here. anyhow a quick google search shows that the error appears shows when running apps built on older sdk on phones with newer version. Hope this helps. just try to rebuild the app on latest sdk.


In my case it was the following logcat output, which pointed to the problem in the manifest:

Invalid taskAffinity name 1 in package com.eazyigz.RussiaMediaSearch: bad character '1'

Once I deleted that line, everything was fine.


always write activity name prefix with package name

instead of :

<activity android:name=".Activities.AAWidget" android:theme="@android:style/Theme.Dialog"
    android:screenOrientation="portrait">

write with package name :

<activity android:name="com.example.HelloWorld.Activities.AAWidget" android:theme="@android:style/Theme.Dialog"
    android:screenOrientation="portrait">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜