[英]Application not running on real Android device
I tried a lot of time running my app in my cell Samsung Galaxy S3 but always getting the same thing 我花了很多时间在我的手机Samsung Galaxy S3中运行我的应用程序,但总是得到相同的结果
[2014-04-14 20:11:14 - BridgeText] Android Launch!
[2014-04-14 20:11:14 - BridgeText] adb is running normally.
[2014-04-14 20:11:14 - BridgeText] Performing com.bridge.text.ChatNameActivity activity launch
[2014-04-14 20:11:14 - BridgeText] No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.
Also tried to reset adb but getting following error: 还尝试重置adb,但出现以下错误:
[2014-04-14 20:15:22 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2014-04-14 20:15:23 - DeviceMonitor] Connection attempts: 1
my device's usb debugging mode is enabled and my device's android version is 4.3 and I also have updated my API. 我的设备的USB调试模式已启用,我的设备的Android版本为4.3,并且我还更新了我的API。 However I also show my AndroidManifest file if it makes it easy to understand.
但是,如果它易于理解,我还将显示我的AndroidManifest文件。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bridge.text"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.bridge.text.ChatNameActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.bridge.text.TextActivity"
android:label="@string/text_messages_title"
android:parentActivityName="com.bridge.text.ChatNameActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.bridge.text.ChatNameActivity" />
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Any help would be appreciated. 任何帮助,将不胜感激。
You may need to manually enter a value in your adb_usb.ini file. 您可能需要在adb_usb.ini文件中手动输入一个值。 On Windows, that can be done with:
在Windows上,可以通过以下方式完成:
echo 0xYYYY >> "%USERPROFILE%\.android\adb_usb.ini"
where YYYY is the 4-digit Vendor ID for your device. 其中YYYY是设备的4位供应商ID。 I believe that's '04e8' for Samsung devices.
我相信这是三星设备的'04e8'。
You'll need to then restart ADB with: 然后,您需要使用以下命令重新启动ADB:
adb kill-server
adb start-server
adb devices
Several known Android vendor IDs are at the bottom of this page . 此页面底部有几个已知的Android供应商ID。 And here's a more complete list of USB IDs.
而这里的 USB ID的完整列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.