高德API相關

學習gradle,http://blog.csdn.net/innost/article/details/48228651html

Android  的編譯框架java

1. android studio中運行的app都是用C:\Users\ouyl\.android\debug.keystore文件,產生的SHA1都是同樣的,只是包不同,不一樣包在高德key裏面改就好了。android

2.對於要發佈的app,應該用選擇Build > Generate Signed APK…產生本身的jks文件,如 http://www.open-open.com/lib/view/open1441896025274.html 所示,git

再用keytool -v -list -keystore realse.jsk 獲取SHA1,把SHA1和包設置到高德的key中去就好了。web

把產生的realse apk存到手機中運行(不能在android studio裏運行安裝)。windows

      1. SHA1 fingerprint

 

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

 

 

高德地圖開發申請KEY的時候須要開發者提供SHA1證書指紋數據,在eclipse很容易就找到了,可是Android Studio好久也沒找到,只能使用在網上看到的方法了,在Android Studio中的Terminal中使用keytool獲取了,具體以下圖所示(輸入密鑰庫口令--測試的默認口令爲:android,若是使用本身提供的keystore,就是本身的密碼了):框架

 

C:\Users\ouyl\.android>keytool -list -v -keystore debug.keystoreeclipse

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 => app\src\main\AndroidManifest.xml

* libs\AMap_ Location_v1.4.0_20150830.jar => app\libs\AMap_ Location_v1.4.0_20150830.jar

* libs\Android_Map_2.5.1.20150827.jar => app\libs\Android_Map_2.5.1.20150827.jar

* libs\arm64-v8a\libamapv304.so => app\src\main\jniLibs\arm64-v8a\libamapv304.so

* libs\arm64-v8a\libamapv304ex.so => app\src\main\jniLibs\arm64-v8a\libamapv304ex.so

* libs\armeabi-v7a\libamapv304.so => app\src\main\jniLibs\armeabi-v7a\libamapv304.so

* libs\armeabi-v7a\libamapv304ex.so => app\src\main\jniLibs\armeabi-v7a\libamapv304ex.so

* libs\armeabi\libamapv304.so => app\src\main\jniLibs\armeabi\libamapv304.so

* libs\armeabi\libamapv304ex.so => app\src\main\jniLibs\armeabi\libamapv304ex.so

* libs\x86\libamapv304.so => app\src\main\jniLibs\x86\libamapv304.so

* libs\x86\libamapv304ex.so => app\src\main\jniLibs\x86\libamapv304ex.so

* proguard-project.txt => app\proguard-project.txt

* res\ => app\src\main\res\

* src\ => app\src\main\java\

 

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:\Users\android-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.)

相關文章
相關標籤/搜索