//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
原文地址:https://www.cnblogs.com/YZFHKMS-X/p/12585179.html
时间: 2024-10-10 09:54:34