我在手機和模擬器上嘗試了它,但即使構建成功,該應用程序也未安裝到仿真器中。每次,我都要從IDE運行應用程序才能使其運行。以前,一旦我運行該應用程序,它就會被安裝在模擬器上。在控制檯上顯示安裝成功之後,Android應用程序未在仿真器中安裝
這是我的AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.main"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="preferExternal">
<!-- Set minimum AndroidSDk version -->
<uses-sdk android:minSdkVersion="7"/>
<!-- user permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<application
android:icon="@drawable/ic_app"
android:label="@string/app_name" android:theme="@style/Theme.App" android:allowClearUserData="true" android:permission="android.permission.ACCESS_FINE_LOCATION">
<!-- SplashScreen : make this Activity as App launcher -->
<activity android:name="com.App.main.SplashScreen" android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- end of SplashScreen -->
<!-- MainActivity -->
<activity android:name="com.apps.main.AppMainActivity" android:label="@string/app_name"
android:noHistory="true" ></activity>
<!-- end of MainActivity -->
<!-- Account activities -->
<!-- User Login : set no history available once user logged-in -->
<activity
android:name="com.apps.main.account.Login"
android:noHistory="true" >
</activity>
<!-- User Registeration -->
<activity
android:name="com.apps.main.account.Register"
android:noHistory="true">
</activity>
<!-- end of Acount activities -->
</application>
</manifest>
沒,沒什麼的日誌貓。正如我所說,該應用程序成功建立。
logcat請嘗試安裝。 – Deva 2012-02-28 11:58:59
建築不等於安裝。建築可能會成功。如何安裝應用程序?查看mah的答案並檢查您的版本號。 – Moritz 2012-02-28 12:06:08