gradle - Solved: AppCompat / Chromecast in Android-L Preview -


status:

I'm currently building my new version I am also in the process of app and chromecast integration for Android L The app works fine, as long as I enhance the theme. Content with my custom style, but does not show the cast button.

Problem:

As soon as I change to theme. AppCompat, it gives me an error:

  Error: Error retrieving parent for item: No resource found which gave the name '@android: style / Theme.AppCompat.Light DarkActionBar 'matches.   

And this also goes for the Holo theme too.

This is my build.gradle (the Libs folder is empty btw):

  The applicable plugin: 'com.android.application' android { CompileSdkVersion 'android-L' buildToolsVersion "20.0.0" defaultConfig {applicationId "com.myapp.myapp" minSdkVersion 'android-L' targetSdkVersion 'android-L'versionCode 1 versionName "1.0"} {buildTypes release {runProguard false proguardFiles getDefaultProguardFile ( 'ProGuard-android.txt'), 'proguard-rules.pro'}}} {Dependency compile FileTree (dir: 'Libs', includes: ['* .jar']) // You should use this dependency To install or update the support repository through SDK Manager It will be 'Com.android.support:appcompat-v7:+' Compile 'com.android.support:support-v4:+' compilation 'com.android.support:cardview-v7:+' compilation 'com.android.support Compilation: Mediarouter-v7: + 'compile' com.google.android.gms: play-services: + '}   

here values ​​/ styles.xml :

  & lt; Style name = "SK" Basic = "Android: Theme. AppCompat.Light.DarkActionBar" & gt;   

Value- V21 / styles.xml was working with Theme.Holo.Light.DarkActionBar:

  & lt; Style name = "SK" Original = "@Android: Style / Theme. AppCompat.Light.DarkActionBar" & gt;   

Used for wirk with Theme.Material.Light.DarkActionBar

I've already cleaned up and rebuilt the project, but it's always a missing parent About me goes back showing errors. As far as I can assemble with similar questions, all the relevant libraries are included and all the latest versions available are available. I manually tried to add libraries / folders without any success to my SDK manager That everything is installed and up to date.

What am I missing here? Thank you in advance for your time.

Solution:

This is actually rather simple I was sent to Theme.AppCompat instead of with Android name space, but it should have been left out, so, then

  @Android: style / Theme.AppCompat  

  @ style / theme. AppCompat   

It initially shows another error, "Theme" Not found about, but it is non-low.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -