2015-05-24 88 views
3

我陷入了一個奇怪的問題。 我有一個在Android 4.4.4上工作的項目。 昨晚我把手機升級到了5.0.2。 現在,當我試圖通過它調試我的應用程序。我越來越奇怪的錯誤。安裝錯誤未知故障

控制檯:

安裝錯誤:未知故障

請檢查logcat的輸出獲取更多信息。

發佈取消!

logcat的:

enter image description here

清單

<?xml version="1.0" encoding="utf-8"?> 
 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
 
    package="com.gs.gssdk.sample" 
 
    android:versionCode="1" 
 
    android:versionName="1.0" > 
 

 
    <uses-sdk 
 
     android:minSdkVersion="18" 
 
     android:targetSdkVersion="19" /> 
 

 
    <!-- 
 
    Declare this required feature if you want to make the app available to BLE-capable 
 
    devices only. If you want to make your app available to devices that don't support BLE, 
 
    you should omit this in the manifest. Instead, determine BLE capability by using 
 
    PackageManager.hasSystemFeature(FEATURE_BLUETOOTH_LE) 
 
    --> 
 
    <uses-feature 
 
     android:name="android.hardware.bluetooth_le" 
 
     android:required="true" /> 
 

 
    <uses-permission android:name="android.permission.BLUETOOTH" /> 
 
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 
 
    <uses-permission android:name="android.permission.CAMERA"/> 
 
    <uses-permission android:name="android.permission.INTERNET" /> 
 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 
 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
 
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
 
     
 
     
 
    <uses-feature android:name="android.hardware.camera" /> 
 
    <uses-feature android:name="android.hardware.camera.autofocus" /> 
 
     
 
    
 
    <application 
 
     android:allowBackup="true" 
 
     android:icon="@drawable/ic_launcher" 
 
     android:label="@string/app_name" 
 
     android:theme="@style/AppTheme" > 
 
     <activity 
 
      android:name="com.gs.gssdk.sample.MainActivity" 
 
      android:label="@string/app_name" > 
 
      <intent-filter> 
 
       <action android:name="android.intent.action.MAIN" /> 
 

 
       <category android:name="android.intent.category.LAUNCHER" /> 
 
      </intent-filter> 
 
     </activity> 
 
     
 
     <service 
 
      android:name = "com.gs.gssdk.BluetoothLeService" 
 
      android:enabled="true" /> 
 
    </application> 
 

 
</manifest>

我研究的聯繫,但沒有幫助。

我無法解決此問題。

你能幫我嗎?

+0

你可以看到這個鏈接http://stackoverflow.com/questions/22629568/couldnt-load-memtrack-module-logcat-error –

+0

謝謝。我試了一下,但沒有收穫。 –

+0

只需從手機上卸載你的應用程序並進行調試,如果仍有問題,只需將你的目標sdk版本增加到21 – Brendon

回答

0

我的手機沒有設置爲USB調試。我在開發人員選項中檢查了該複選框,現在它的工作很好。 謝謝。