anroid import org.apache.http.Header error

 

//useLibrary 'org.apache.http.legacy'

in android-sdk-windows\platforms\android-26\optional

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':libcocos2dx')
implementation files('libs/android-async-http-1.4.8.jar')
//implementation 'org.apache.httpcomponents:httpcore:4.4.2'
implementation files('libs/org.apache.http.legacy.jar')
}



////////////

copy org.apache.http.legacy.jar to cocos2d-x\cocos\platform\android\java\libs

posted @ 2020-03-27 23:42  YZFHKMS-X  阅读(328)  评论(0编辑  收藏  举报