您好,登錄后才能下訂單哦!
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語言
導入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()'!
把項目中gradle.build中“android”刪除,開頭apply plugin: 'com.android'改成 apply plugin: 'com.android.application'
3、Gradle DSL method not found: 'runProguard()' 問題的引發與解決
初步定位為Build System的問題,立即查看Android官方文檔,See Android Build System,發現從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 。
網址: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、關于如何查看studio的sha1和md5:
1)、http://www.bubuko.com/infodetail-1031689.html,
2)、創建一個googleMapActivity,如何在對應的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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。