課程
/移動開發(fā)
/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" ? ?}
舉報
使用第三方訊飛語音實現(xiàn)中英文語音詞典的功能
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
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"
? ?}