How to Setup gradle-2.2.1-all.zip Manually
- Delete the C:\Users\username.gradle folder
- Download http://downloads.gradle.org/distributions/gradle-2.2.1-all.zip
- Create a new project in android studio.
- When this time it stucks at gradle building, Force close the android studio.
- Now go to C:\Users\username.gradle\wrapper\dists\gradle-2.2.1-all\c64ydeuardnfqctvr1gm30w53 (the end directory name may be different)
- Delete gradle-2.2.1-all.zip.lck and other files from this directory.
- Paste the new downloaded gradle-2.2.1-all.zip here.
- Run the android studio. :)
Android network error
change localhost to your ip address
1. in android simulate, press ctrl + m open dev menu
2. choose Dev settings
3. choose Debug server host & port for device,
your-ip:8081
Install apk to android emulator
start cmd shell, type command:
adb devices
if list more than one device, than type:
adb kill-server
open android studio for start emulator, than type:
adb install C:\Users\Name\MyProject\build\Jorgesys.apk