Why Warning:Unable to find optional library: org.apache.http.legacy occurs?

前端 未结 5 1911
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 07:26

My gradle file:

apply plugin: \'com.android.application\' 

android { 
  useLibrary \'org.apache.http.legacy\' 
  compileSdkVersion 23 
  buildToolsVersion \         


        
5条回答
  •  [愿得一人]
    2020-12-08 07:46

    The error is that the optional.json file is not in the \platforms\android-23\optional\ folder.

    I solved this by the following:

    1. Go to the sdk manager
    2. Select Android Sdk and updates are available in the Appropriate API level.
    3. Just update it.

提交回复
热议问题