【问题标题】:Installation Error Unknown Failure [closed]安装错误未知故障[关闭]
【发布时间】:2015-05-24 07:19:54
【问题描述】:

我陷入了奇怪的问题。 我有一个在 android 4.4.4 上运行的项目。 昨晚我将手机升级到 5.0.2。 现在,当我尝试通过它调试我的应用程序时。我收到奇怪的错误。

控制台:

安装错误:未知故障

请查看 logcat 输出以获取更多详细信息。

发射已取消!

LogCat:

清单

<?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>

我研究了链接但没有帮助。

我无法解决这个问题。

你能帮帮我吗?

【问题讨论】:

  • 谢谢。我试了一下,没有收获。
  • 只需从手机上卸载您的应用并调试它,如果仍然有问题,只需将您的目标 sdk 版本增加到 21

标签: java android android-5.0-lollipop


【解决方案1】:

我的手机没有设置 USB 调试。我检查了开发人员选项中的复选框,现在它工作得很好。 谢谢。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-08
    • 2023-04-09
    • 1970-01-01
    • 2018-04-21
    • 1970-01-01
    • 2021-11-19
    • 1970-01-01
    • 2015-09-25
    相关资源
    最近更新 更多