error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'

前端 未结 6 814
清酒与你
清酒与你 2021-01-03 18:32

Error: No resource found that matches the given name: attr 'listViewStyle'

I have tried everything from here. Nothing is working.

I have imported AP

相关标签:
6条回答
  • 2021-01-03 18:54

    Changing the manifest's android:targetSdkVersion value to the correct version solved it for me.

    0 讨论(0)
  • 2021-01-03 19:00

    I resolved the same issue by adding

     android:theme="@style/AppTheme"    
    

    within application tag in the AndroidManifest.xml file. This will recognize the app theme.

    <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" 
            android:debuggable="true" > 
            <activity 
                ...
            </activity>
          ...
    </application>
    
    0 讨论(0)
  • 2021-01-03 19:05

    Have your written exactly this?

    <item name="android:listViewStyle"> 
    
    0 讨论(0)
  • 2021-01-03 19:11

    I have faced a similar issue even with the correct settings in Properties etc. It seems a problem with Eclipse. I have removed the content of the xml files, then "save", then enter again the values i.e.

    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
    

    and "save" again.

    0 讨论(0)
  • 2021-01-03 19:12

    You can refer to the Holo theme as parent="@android:style/Theme.Holo", but to use the Holo Theme you have to set the build target in your manifest to API level 11 or later, also you have to put the style.xml file containing the Holo theme to the folder values-v11

    0 讨论(0)
  • 2021-01-03 19:18

    Just delete the HOLO as this resource is not available for that API Level

            parent="android:Theme.Light"
    
    0 讨论(0)
提交回复
热议问题