21 Dec 2015

OEM USB Drivers

Acer         http://www.acer.com/worldwide/support/mobile.html
alcatel one touch http://www.alcatelonetouch.com/global-en/support/
Asus  http://support.asus.com/download/
Blackberry https://swdownloads.blackberry.com/Downloads/entry.do?code=4EE0932F46276313B51570F46266A608
Dell http://support.dell.com/support/downloads/index.aspx?c=us&cs=19&l=en&s=dhs&~ck=anavml
Fujitsu http://www.fmworld.net/product/phone/sp/android/develop/
Hisense http://app.hismarttv.com/dss/resourcecontent.do?method=viewResourceDetail&resourceId=16&type=5
HTC http://www.htc.com
Click on the support tab to select your products/device. Different regions will have different links.

Huawei http://consumer.huawei.com/en/support/index.htm
Intel         http://www.intel.com/software/android
Kyocera http://www.kyocera-wireless.com/support/phone_drivers.htm
Lenovo http://support.lenovo.com/us/en/GlobalProductSelector
LGE         http://www.lg.com/us/support/software-firmware
Motorola https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/
MTK http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip (ZIP download)
Oppo http://www.oppo.com/index.php?q=software/view&sw_id=631
Pegatron http://www.pegatroncorp.com/download/New_Duke_PC_Driver_0705.zip (ZIP download)
Samsung http://www.samsung.com/us/support/downloads
Sharp http://k-tai.sharp.co.jp/support/
Sony Mobile Communications http://developer.sonymobile.com/downloads/drivers/
Toshiba http://support.toshiba.com/sscontent?docId=4001814
Xiaomi http://www.xiaomi.com/c/driver/index.html
ZTE         http://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=1000442

Read More !

18 Dec 2015

Resetting adb in Android studio

If you are having issues trying to connect to the emulator or see any type of "Connection refused" errors, you may need to reset the Android Debug Bridge. You can go to Tools->Android->Android Device Monitor. Click on the mobile device icon and click on the arrow facing down to find the Reset adb option.
Image 1:-
Amar's Android Tech
 Image 2:-
Amar's Android Tech

Read More !

11 Dec 2015

INSTALL_FAILED_OLDER_SDK error message

If your minSdkVersion is higher than the Android version you are using (i.e. using an emulator that supports API 19 and your target version is for API 23), then you may see an error message that appears similar to the following :
Application Installation Failed
You will need to either lower the minSdkVersion or upgrade to an Android emulator or device that supports the minimum SDK version required.
Read More !

5 Dec 2015

Seeing java.lang.OutOfMemoryError : GC overhead limit when compiling

You are most likely exhausting the heap size especially during compilation. Try to add inside this setting in your app/build.gradle:

android {
   .
   .
   .
   dexOptions {
     javaMaxHeapSize "4g"
   }
}

You can also reduce the build time too by setting incremental to be true:

android {
   dexOptions { 
      incremental true
      javaMaxHeapSize "4g"
   }
}

Still not working? Try to increase the heap size of Android Studio.
  1. Quit Android Studio.
  2. Create or edit a studio.vmoptions file.
    • On Mac, this file should be in ~/Library/Preferences/AndroidStudio/studio.vmoptions.
    • On Windows, it should be in %USERPROFILE%\.AndroidStudio\studio[64].exe.vmoptions.
    Increase the maximum memory to 2 Gb and max heap size of 1 Gb.
     -Xmx2048m
     -XX:MaxPermSize=1024m`
    
  3. Start Android Studio.
Read More !