http://stormzhang.com/android/2014/07/07/learn-android-from-rookie/ 了解studio
http://www.ibm.com/developerworks/cn/education/java/j-groovy/j-groovy.html 了解android tudio中替代java語音的groovy語言
導(dǎo)入studuo項目問題:
1 、Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory
路徑包含中文,改成;
2、Android studio - Build script error, unsupported Gradle DSL method found: 'android()'!
把項目中g(shù)radle.build中“android”刪除,開頭apply plugin: 'com.android'改成 apply plugin: 'com.android.application'
3、Gradle DSL method not found: 'runProguard()' 問題的引發(fā)與解決
初步定位為Build System的問題,立即查看Android官方文檔,See Android Build System,發(fā)現(xiàn)從0.14.0之后runProguard變更為minifyEnabled。
Previous code :buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
Current code :buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
4、 buildToolsVersion is not specified.
Try to invalidate caches / restart , it fixed this like this after updated File-> Invalidate caches/restart 。
網(wǎng)址:http://stackoverflow.com/questions/32153544/errorcause-buildtoolsversion-is-not-specified
5、java.lang.UnsatisfiedLinkError: Couldn't load eposprint: findLibrary returned null
so文件丟失,在目錄下放so文件
|---src
|---main
|---jniLibs
|---armeabi
|---nativeLib.so
6、關(guān)于如何查看studio的sha1和md5:
1)、http://www.bubuko.com/infodetail-1031689.html,
2)、創(chuàng)建一個googleMapActivity,如何在對應(yīng)的xml文件里面查看sha1
原文:I just find case to get SHA1 in Android Studio
1.Click on your package and choose New -> Google -> Google Maps Activity
2.Android Studio redirect you to google_maps_api.xml
3.And you will see all you need to get google_maps_key
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
本文標(biāo)題:studio設(shè)置問題集錦-創(chuàng)新互聯(lián)
URL網(wǎng)址:http://aaarwkj.com/article48/ccjjep.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供小程序開發(fā)、定制網(wǎng)站、服務(wù)器托管、網(wǎng)頁設(shè)計公司、App設(shè)計、企業(yè)網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容