編輯:關於Android編程
1. ”An internal error occurred during: "Launching New_configuration". Path for project must have only one segment.“
解決方法:
Project -> Properties -> Run/Debug Settings:
3. OK
2. ”Downloading Google USB Driver, revision 11 Download interrupted: URL not found.“
解決方法:(感謝:@AMinfo)
SDK Manager裡面菜單 -> Tools -> Offcial Add-on Sites -> Enable All
SDK Manager裡面菜單 -> Tools -> User Defined Sites 添加上:
http://android-misc-widgets.googlecode.com/svn/trunk/addon.xml
http://developer.android.com/sdk/index.html
(加了這兩個sites後,在sdk manager上下載安裝各種快啊,反正我這裡是到達上千kb/s了)
加個升級log:
Fetching https://dl.google.com/android/repository/addons_list-2.xml Validate XML Parse XML Fetched Add-ons List successfully Fetching URL: https://dl.google.com/android/repository/repository-10.xml Validate XML: https://dl.google.com/android/repository/repository-10.xml Parse XML: https://dl.google.com/android/repository/repository-10.xml Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete) Found SDK Platform Android 1.5, API 3, revision 4 (Obsolete) Found SDK Platform Android 1.6, API 4, revision 3 (Obsolete) Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete) Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete) Found SDK Platform Android 2.1, API 7, revision 3 (Obsolete) Found SDK Platform Android 2.2, API 8, revision 3 Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete) Found SDK Platform Android 2.3.3, API 10, revision 2 Found SDK Platform Android 3.0, API 11, revision 2 (Obsolete) Found SDK Platform Android 3.1, API 12, revision 3 (Obsolete) Found SDK Platform Android 3.2, API 13, revision 1 (Obsolete) Found SDK Platform Android 4.0, API 14, revision 4 (Obsolete) Found SDK Platform Android 4.0.3, API 15, revision 5 Found SDK Platform Android 4.1.2, API 16, revision 5 Found SDK Platform Android 4.2.2, API 17, revision 3 Found SDK Platform Android 4.3.1, API 18, revision 3 Found SDK Platform Android 4.4.2, API 19, revision 4 Found SDK Platform Android 4.4W.2, API 20, revision 2 Found SDK Platform Android 5.0.1, API 21, revision 2 Found SDK Platform Android 5.1.1, API 22, revision 2 Found Samples for SDK API 7, revision 1 (Obsolete) Found Samples for SDK API 8, revision 1 Found Samples for SDK API 9, revision 1 (Obsolete) Found Samples for SDK API 10, revision 1 Found Samples for SDK API 11, revision 1 (Obsolete) Found Samples for SDK API 12, revision 1 (Obsolete) Found Samples for SDK API 13, revision 1 (Obsolete) Found Samples for SDK API 14, revision 2 (Obsolete) Found Samples for SDK API 15, revision 2 Found Samples for SDK API 16, revision 1 Found Samples for SDK API 17, revision 1 Found Samples for SDK API 18, revision 1 Found Samples for SDK API 19, revision 6 Found Samples for SDK API 20, revision 3 Found Samples for SDK API 21, revision 4 Found Samples for SDK API 22, revision 5 Found Android SDK Platform-tools, revision 22 Found Android SDK Build-tools, revision 17 (Obsolete) Found Android SDK Build-tools, revision 18.0.1 (Obsolete) Found Android SDK Build-tools, revision 18.1 (Obsolete) Found Android SDK Build-tools, revision 18.1.1 (Obsolete) Found Android SDK Build-tools, revision 19 (Obsolete) Found Android SDK Build-tools, revision 19.0.1 (Obsolete) Found Android SDK Build-tools, revision 19.0.2 (Obsolete) Found Android SDK Build-tools, revision 19.0.3 (Obsolete) Found Android SDK Build-tools, revision 19.1 Found Android SDK Build-tools, revision 20 Found Android SDK Build-tools, revision 21 (Obsolete) Found Android SDK Build-tools, revision 21.0.1 (Obsolete) Found Android SDK Build-tools, revision 21.0.2 (Obsolete) Found Android SDK Build-tools, revision 21.1 (Obsolete) Found Android SDK Build-tools, revision 21.1.1 (Obsolete) Found Android SDK Build-tools, revision 21.1.2 Found Android SDK Build-tools, revision 22 (Obsolete) Found Android SDK Build-tools, revision 22.0.1 Found Android SDK Tools, revision 24.1.2 Found Documentation for Android SDK, API 22, revision 1 Found Sources for Android SDK, API 14, revision 1 (Obsolete) Found Sources for Android SDK, API 15, revision 2 Found Sources for Android SDK, API 16, revision 2 Found Sources for Android SDK, API 17, revision 1 Found Sources for Android SDK, API 18, revision 1 Found Sources for Android SDK, API 19, revision 2 Found Sources for Android SDK, API 20, revision 1 Found Sources for Android SDK, API 21, revision 1 Found Sources for Android SDK, API 22, revision 1 Fetching URL: https://dl.google.com/android/repository/addon.xml Validate XML: https://dl.google.com/android/repository/addon.xml Parse XML: https://dl.google.com/android/repository/addon.xml Found Google APIs, Android API 3, revision 3 (Obsolete) Found Google APIs, Android API 4, revision 2 (Obsolete) Found Google APIs, Android API 5, revision 1 (Obsolete) Found Google APIs, Android API 6, revision 1 (Obsolete) Found Google APIs, Android API 7, revision 1 (Obsolete) Found Google APIs, Android API 8, revision 2 Found Google APIs, Android API 9, revision 2 (Obsolete) Found Google APIs, Android API 10, revision 2 Found Google APIs, Android API 11, revision 1 (Obsolete) Found Google APIs, Android API 12, revision 1 (Obsolete) Found Google APIs, Android API 13, revision 1 (Obsolete) Found Google APIs, Android API 14, revision 2 (Obsolete) Found Google APIs, Android API 15, revision 2 Found Google APIs, Android API 16, revision 3 Found Google APIs, Android API 17, revision 3 Found Google APIs, Android API 18, revision 3 Found Google APIs (ARM System Image), Android API 19, revision 12 Found Google APIs, Android API 21, revision 1 Found Google APIs, Android API 22, revision 1 Found Google TV Addon, Android API 12, revision 2 (Obsolete) Found Google TV Addon, Android API 13, revision 1 (Obsolete) Found Android Support Library, revision 22 Found Android Support Repository, revision 12 Found Google Repository, revision 16 Found Google Play Licensing Library, revision 2 Found Google Play APK Expansion Library, revision 3 Found Google Play services for Froyo, revision 12 (Obsolete) Found Google Play services, revision 23 Found Google USB Driver, revision 11 Found Google Play Billing Library, revision 5 Found Google AdMob Ads SDK, revision 11 (Obsolete) Found Google Analytics App Tracking SDK, revision 3 (Obsolete) Found Google Web Driver, revision 2 Found Google Cloud Messaging for Android Library, revision 3 (Obsolete) Found Android Auto API Simulators, revision 1 Fetching URL: https://dl.google.com/android/repository/addon-6.xml Validate XML: https://dl.google.com/android/repository/addon-6.xml Parse XML: https://dl.google.com/android/repository/addon-6.xml Found Android Support Library, revision 19.1 Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml Parse XML: https://dl.google.com/android/repository/extras/intel/addon.xml Found Intel x86 Emulator Accelerator (HAXM installer), revision 5.3 Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml Parse XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml Found ARM EABI v7a System Image, Android API 14, revision 2 (Obsolete) Found ARM EABI v7a System Image, Android API 15, revision 2 Found ARM EABI v7a System Image, Android API 16, revision 3 Found ARM EABI v7a System Image, Android API 17, revision 2 Found ARM EABI v7a System Image, Android API 18, revision 2 Found ARM EABI v7a System Image, Android API 19, revision 2 Found ARM EABI v7a System Image, Android API 21, revision 1 Found Intel x86 Atom System Image, Android API 10, revision 2 Found Intel x86 Atom System Image, Android API 15, revision 1 Found Intel x86 Atom System Image, Android API 16, revision 1 Found Intel x86 Atom System Image, Android API 17, revision 1 Found Intel x86 Atom System Image, Android API 18, revision 1 Found Intel x86 Atom System Image, Android API 19, revision 2 Found Intel x86 Atom System Image, Android API 21, revision 1 Found Intel x86 Atom_64 System Image, Android API 21, revision 1 Found Intel x86 Atom System Image, Android API 22, revision 1 Found Intel x86 Atom_64 System Image, Android API 22, revision 1 Found ARM EABI v7a System Image, Android API 22, revision 1 Found MIPS System Image, Android API 15, revision 1 Found MIPS System Image, Android API 16, revision 4 Found MIPS System Image, Android API 17, revision 1 Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml Parse XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml Found Android Wear ARM EABI v7a System Image, Android API 20, revision 4 Found Android Wear Intel x86 Atom System Image, Android API 20, revision 4 Found Android Wear ARM EABI v7a System Image, Android API 21, revision 2 Found Android Wear Intel x86 Atom System Image, Android API 21, revision 2 Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml Parse XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml Found Android TV Intel x86 Atom System Image, Android API 21, revision 1 Found Android TV ARM EABI v7a System Image, Android API 21, revision 1 Found Android TV Intel x86 Atom System Image, Android API 22, revision 1 Found Android TV ARM EABI v7a System Image, Android API 22, revision 1 Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml Parse XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml Found Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 4 Found Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 4 Found Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 4 Found Google APIs Intel x86 Atom System Image, Google Inc. API 22, revision 1 Found Google APIs ARM EABI v7a System Image, Google Inc. API 22, revision 1 Found Google APIs Intel x86 Atom_64 System Image, Google Inc. API 22, revision 1 Fetching URL: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml Validate XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml Parse XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml Found Google APIs (x86 System Image), Android API 19, revision 12 Fetching URL: http://android-misc-widgets.googlecode.com/svn/trunk/addon.xml Fetching URL: http://developer.android.com/sdk/index.html Done loading packages.
背景知識:可以用Activity和Service來開始消息通知,兩者的區別在於一個是在前台觸發,一個是後台服務觸發。要使用消息通知,必須要用到兩個類:Notificati
這個圖片異步加載並緩存的類已經被很多開發者所使用,是最常用的幾個開源庫之一,主流的應用,隨便反編譯幾個火的項目,都可以見到它的身影。可是有的人並不知道如何去使用這庫如何進
感覺android中的toast效果挺不錯的,就試著自己用2dx做了一下,挺簡單的,效果也不錯。 XYToast.h #pragma once #include co
簽名工具的使用Android源碼編譯出來的signapk.jar既可給apk簽名,也可給rom簽名的。使用格式:java –jar signapk.jar [-w] pu