Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23

后端 未结 24 1449
孤城傲影
孤城傲影 2020-11-22 02:30

I\'ve always programmed Android with Eclipse and decided to start migrating to Android Studio. I decided to use the same SDK I already had for Eclipse, then:

  • S
24条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 03:04

    You need to set compileSdkVersion to 23.

    Since API 23 Android removed the deprecated Apache Http packages, so if you use them for server requests, you'll need to add useLibrary 'org.apache.http.legacy' to build.gradle as stated in this link:

    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.0"
        ...
    
        //only if you use Apache packages
        useLibrary 'org.apache.http.legacy'
    }
    

提交回复
热议问题