課程
/移動開發
/Android
/Android語音詞典
HTTPGet request = new HttpGet(buf.tostring);
我用的Android studio 沒有這個屬性 ,我也找不到 clict
2017-04-10
源自:Android語音詞典 3-3
正在回答
在bulid.gradle中加入useLibrary 'org.apache.http.legacy' 這是因為 Android6.0之后不支持httpclient
android { ? ?useLibrary 'org.apache.http.legacy' ? ?compileSdkVersion 25 ? ?buildToolsVersion "25.0.2" ? ?defaultConfig { ? ? ? ?applicationId "cn.zhuzhengren.youdaodemo123456" ? ? ? ?minSdkVersion 23 ? ? ? ?targetSdkVersion 25 ? ? ? ?versionCode 1 ? ? ? ?versionName "1.0" ? ? ? ?testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" ? ?}
舉報
使用第三方訊飛語音實現中英文語音詞典的功能
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-04-14
在bulid.gradle中加入useLibrary 'org.apache.http.legacy' 這是因為 Android6.0之后不支持httpclient
android {
? ?useLibrary 'org.apache.http.legacy'
? ?compileSdkVersion 25
? ?buildToolsVersion "25.0.2"
? ?defaultConfig {
? ? ? ?applicationId "cn.zhuzhengren.youdaodemo123456"
? ? ? ?minSdkVersion 23
? ? ? ?targetSdkVersion 25
? ? ? ?versionCode 1
? ? ? ?versionName "1.0"
? ? ? ?testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
? ?}