当我点击运行时,apk曾经在我的手机上自动启动,但现在它在开发者选项上保持不变,
一旦我点击在eclipse上运行,它会在控制台上显示以下内容:
[2014-03-11 16:26:36 - MyFirstApp] ------------------------------
[2014-03-11 16:26:36 - MyFirstApp] Android Launch!
[2014-03-11 16:26:36 - MyFirstApp] adb is running normally.
[2014-03-11 16:26:36 - MyFirstApp] No Launcher activity found!
[2014-03-11 16:26:36 - MyFirstApp] The launch will only sync the application package on
[2014-03-11 16:26:36 - MyFirstApp] Performing sync
[2014-03-11 16:26:36 - MyFirstApp] Automatic Target Mode: Unable to detect device
[2014-03-11 16:26:38 - MyFirstApp] Uploading MyFirstApp.apk onto device 'EP73226B61'
[2014-03-11 16:26:38 - MyFirstApp] Installing MyFirstApp.apk...
[2014-03-11 16:26:41 - MyFirstApp] Success!
[2014-03-11 16:26:41 - MyFirstApp] \MyFirstApp\bin\MyFirstApp.apk installed on device
[2014-03-11 16:26:41 - MyFirstApp] Done!
但是我说我手机上没有任何东西,
然后我尝试其他方法,比如将apk放入我的下载文件并安装它,它说,Do you want to install an update to this existing application? Your existing data will not be lost. it does not require any special access.
一旦我点击安装,它显示应用程序安装并离开我的两个按钮,完成和打开。但是"开放"按钮是不可点击的
有线,我无法在内部存储和SD卡中找到它,甚至在我的安装应用列表中也找不到。
我的设定 单击USB调试 点击后保持清醒
这是我的清单
<?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="18" />
<application
android:name="com.example.myfirstapp.MainActivity"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<activity
android:name="com.example.myfirstapp.Display1MessageActivity"
android:label="@string/title_activity_display1_message"
android:parentActivityName="com.example.myfirstapp.MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.myfirstapp.MainActivity" />
</activity>
</application>
</manifest>
我的Android版本是4.3是索尼ZR
答案 0 :(得分:1)
检查您的AndroidManifest.xml
文件。它应该包含这样的内容:
<application details omitted>
<activity details omitted>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
如果你没有像上面那样的意图过滤器,Android就不知道要启动你的应用程序的活动。