zoukankan      html  css  js  c++  java
  • 高德API相关

    学习gradle,http://blog.csdn.net/innost/article/details/48228651

    Android  的编译框架

    1. android studio中运行的app都是用C:Usersouyl.androiddebug.keystore文件,产生的SHA1都是一样的,只是包不一样,不同包在高德key里面改就行了。

    2.对于要发布的app,应该用选择Build > Generate Signed APK…产生自己的jks文件,如 http://www.open-open.com/lib/view/open1441896025274.html 所示,

    再用keytool -v -list -keystore realse.jsk 获取SHA1,把SHA1和包设置到高德的key中去就行了。

    把产生的realse apk存到手机中运行(不能在android studio里运行安装)。

        1. SHA1 fingerprint

    来自 <http://lbs.amap.com/console/key/terms/android>

    高德地图开发申请KEY的时候需要开发者提供SHA1证书指纹数据,在eclipse很容易就找到了,但是Android Studio很久也没找到,只能使用在网上看到的方法了,在Android Studio中的Terminal中使用keytool获取了,具体如下图所示(输入密钥库口令--测试的默认口令为:android,如果使用自己提供的keystore,就是自己的密码了):

    C:Usersouyl.android>keytool -list -v -keystore debug.keystore

    Keytool jdk自带命令,要设置路径

    android studio Terminal 命令字符不能输入,请求帮助

    找到原因了,前几天无意找到的,

    是因为升级系统的原因,不知道你找到没,打开windows的cmd窗口 选择属性 选择使用旧版本控制台就OK了。

     ------------------------------------------------------------------------------------------

    ECLIPSE ANDROID PROJECT IMPORT SUMMARY

    ======================================

    Ignored Files:

    --------------

    The following files were *not* copied into the new Gradle project; you

    should evaluate whether these are still needed in your project and if

    so manually move them:

    * .gitignore

    * AMapLocationDemo.zip

    * ic_launcher-web.png

    * 运行Android-Demo必看.pdf

    Replaced Jars with Dependencies:

    --------------------------------

    The importer recognized the following .jar files as third party

    libraries and replaced them with Gradle dependencies instead. This has

    the advantage that more explicit version information is known, and the

    libraries can be updated automatically. However, it is possible that

    the .jar file in your project was of an older version than the

    dependency we picked, which could render the project not compileable.

    You can disable the jar replacement in the import wizard and try again:

    android-support-v4.jar => com.android.support:support-v4:19.+

    Moved Files:

    ------------

    Android Gradle projects use a different directory structure than ADT

    Eclipse projects. Here's how the projects were restructured:

    * AndroidManifest.xml => appsrcmainAndroidManifest.xml

    * libsAMap_ Location_v1.4.0_20150830.jar => applibsAMap_ Location_v1.4.0_20150830.jar

    * libsAndroid_Map_2.5.1.20150827.jar => applibsAndroid_Map_2.5.1.20150827.jar

    * libsarm64-v8alibamapv304.so => appsrcmainjniLibsarm64-v8alibamapv304.so

    * libsarm64-v8alibamapv304ex.so => appsrcmainjniLibsarm64-v8alibamapv304ex.so

    * libsarmeabi-v7alibamapv304.so => appsrcmainjniLibsarmeabi-v7alibamapv304.so

    * libsarmeabi-v7alibamapv304ex.so => appsrcmainjniLibsarmeabi-v7alibamapv304ex.so

    * libsarmeabilibamapv304.so => appsrcmainjniLibsarmeabilibamapv304.so

    * libsarmeabilibamapv304ex.so => appsrcmainjniLibsarmeabilibamapv304ex.so

    * libsx86libamapv304.so => appsrcmainjniLibsx86libamapv304.so

    * libsx86libamapv304ex.so => appsrcmainjniLibsx86libamapv304ex.so

    * proguard-project.txt => appproguard-project.txt

    * res => appsrcmain es

    * src => appsrcmainjava

    Missing Android Support Repository:

    -----------------------------------

    Some useful libraries, such as the Android Support Library, are

    installed from a special Maven repository, which should be installed

    via the SDK manager.

    It looks like this library is missing from your SDK installation at:

    D:Usersandroid-sdk-windows

    To install it, open the SDK manager, and in the Extras category,

    select "Android Support Repository". You may also want to install the

    "Google Repository" if you want to use libraries like Google Play

    Services.

    Next Steps:

    -----------

    You can now build the project. The Gradle project needs network

    connectivity to download dependencies.

    Bugs:

    -----

    If for some reason your project does not build, and you determine that

    it is due to a bug or limitation of the Eclipse to Gradle importer,

    please file a bug at http://b.android.com with category

    Component-Tools.

    (This import summary is for your information only, and can be deleted

    after import once you are satisfied with the results.)

  • 相关阅读:
    正则表达式分组()、不捕获(?:)和断言(?<=)详解
    正则匹配IP
    正则匹配中文
    SPL--Serializable
    JavaScript中原型和原型链
    JavaScript中变量和函数声明的提升
    运行gulp提示:Task function must be specified
    vue-router 去掉#
    学以致用 ---- vue子组件→父组件通信
    删除node_modules
  • 原文地址:https://www.cnblogs.com/liangouyang/p/4862176.html
Copyright © 2011-2022 走看看