温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

studio设置问题集锦

发布时间:2020-07-10 17:12:30 来源:网络 阅读:509 作者:海太帅 栏目:移动开发

    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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI