2016-08-04 15 views
0

Dies ist das erste Mal, dass ich eine Android App mit Bluetooth-Gerät entwickle und ich habe keine Ahnung was Ich mache falsch. Bitte helfen, danke!Fehler: (16, 23) Keine Ressource gefunden, die dem angegebenen Namen entspricht (bei 'Symbol' mit Wert '@ Zeichen/Symbol')

Die Android-Manifest-Datei:

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

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

    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 
    <uses-permission android:name="android.permission.BLUETOOTH" /> 

    <application 
     android:name="com.android.tools.fd.runtime.BootstrapApplication" 
     android:icon="@drawable/icon" 
     android:label="@string/app_name" > 
     <activity 
      android:name="lhu.stevenpon.f713.com.hotlifebluetoothspp" 
      android:configChanges="orientation|keyboardHidden" 
      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="lhu.stevenpon.f713.com.DeviceListActivity" 
      android:configChanges="orientation|keyboardHidden" 
      android:label="@string/select_device" 
      android:theme="@android:style/Theme.Dialog" /> 
     <activity 
      android:name="lhu.stevenpon.f713.com.DeviceListActivity01" 
      android:configChanges="orientation|keyboardHidden" 
      android:label="@string/select_device" 
      android:theme="@android:style/Theme.Dialog" /> 
    </application> 
</manifest> 

Screenshot of Android Studio

Antwort

1

Ändern Sie es an:

android:icon="@mipmap/ic_launcher" 

Da auf der Grundlage Ihrer Sceenshot (und die jetzt empfohlene Methode) Sie Symbole in MipMap haben Ordner.

+0

Vielen Dank! Ich löse diesen Fehler jetzt. – ericsson

0

Ort, um Ihre App-Icon in MipMap Ordner und

Änderung

<application 
     android:name="com.android.tools.fd.runtime.BootstrapApplication" 
     android:icon="@drawable/icon" 
     android:label="@string/app_name" > 

zu

<application 
     android:name="com.android.tools.fd.runtime.BootstrapApplication" 
     android:icon="@mipmap/your_icon" 
     android:label="@string/app_name" > 
+0

Vielen Dank! Ich löse diesen Fehler jetzt. – ericsson