Android Studio - Appcompat build fail values-v23/styles_bases.xml

后端 未结 13 2570
囚心锁ツ
囚心锁ツ 2020-12-15 03:57

I\'ll start from what I want to achieve: building the googlecast-manager example provided here: https://github.com/googlecast/GameManagerSamples I followed instructions here

相关标签:
13条回答
  • 2020-12-15 04:22

    My issue was, one of my un-used dependencies was using sdk-23 version. So after removing those un-used dependencies it worked like a charm.

    0 讨论(0)
  • 2020-12-15 04:24

    I actually found the answer for my problem and the person above was right. The Module SDK set to compile the module was 22.0 and not 23.0. To fix that I did the following. Right click on appcompat: "Open Module Setting -> Modules SDK": New. I Chose the folder containing the whole Android SDK and chose the last Android (e.g. 6.0) with the last Module SDK 23.0.

    0 讨论(0)
  • 2020-12-15 04:28

    I was having problem with new appcompat V-23 as my target sdk is 21. So I did following two steps and it works perfectly for me..

    1) Delete the values-23 folder in res folder.

    2) I was getting error on the src folder as well, so commented the only line inside main() of snippet.java as we do not require it.

    Then add this project as library to your project.. Hope it helps.

    0 讨论(0)
  • 2020-12-15 04:33

    You have to update your SDK to the API 23 that is either not downloaded or not installed properly.

    In your build.gradle set

    compileSdkVersion 23
        buildToolsVersion "23.0.0"
    
    
        targetSdkVersion 23
    compile 'com.android.support:appcompat-v7:23.0.0'
    
    0 讨论(0)
  • 2020-12-15 04:34

    Either revert to appcompact-v22 or update to android api v23

    0 讨论(0)
  • 2020-12-15 04:34

    You have to update your SDK to the API 23 that is either not downloaded or not installed properly. Make sure your compileSdkVersion and dependencies version should be same.

    0 讨论(0)
提交回复
热议问题