Showing posts with label eclipse/android. Show all posts
Showing posts with label eclipse/android. Show all posts

Wednesday, 7 October 2015

Offline system images & packages installation unsuccessful [Eclipse/Android SDK/Java]



I am currently setting up Android SDK, eclipse and Java JDK for app development. Am fairly new to it so am not familiar with very technical jargons. I have managed to successfully setup Java JDK offline and eclipse partially. I say partially because I have been able to get it to recognize platforms, platform tools and build tools by creating recognizable folders and extracting the zip contents into them. I have not succeeded for the system images as I don't know what folder naming is requires for them to be recognized as installed in the android-sdk folder. My pc is currently located in a area where there is no cable or broadband internet since the facility is fairly new but 4G data is available but very expensive.

I tried the tutorial where you create a temp folder in android-sdk, then connect to 4G just to get the SDK manager to read the necessary packages, then disconnect, then run install packages so that it now sources them locally from the temp folder but it fails to install.

The packages I need installed but dont have their zips for offline installation are:-

- Android SDK Build-tools, revision 23.0.1
- Documentation for Android SDK, API 23, revision 1
- SDK Platform Android 6.0, API 23, revision 1
- Samples for SDK API 23, revision 2
- Android TV ARM EABI v7a System Image, Android API 23, revision 2
- Android TV Intel x86 Atom System Image, Android API 23, revision 2
- ARM EABI v7a System Image, Android API 23, revision 3
- Intel x86 Atom_64 System Image, Android API 23, revision 3
- Intel x86 Atom System Image, Android API 23, revision 3
- Google APIs, Android API 23, revision 1
- Google APIs ARM EABI v7a System Image, Google Inc. API 23, revision 7
- Google APIs Intel x86 Atom_64 System Image, Google Inc. API 23, revision 7
- Google APIs Intel x86 Atom System Image, Google Inc. API 23, revision 7
- Sources for Android SDK, API 23, revision 1
- Android Support Library, revision 23.0.1
- Google USB Driver, revision 11


Can anyone provide me with these zips and what folders to create in the android-sdk folder to get them installed?



Android 5.1.1 (B830) problem with eclipse/android studio/adb app installation



I've found very annoying problem and I need your help

When I'm trying to install app via eclipse, android studio or console I'm very often getting an exception from adb:


Quote:









iMac-Piotr:build piotr$ adb install /Users/piotr/git/alphabet/Alphabet.apk
8724 KB/s (38782865 bytes in 4.341s)
java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.S tring, java.lang.String) (tried Java_android_os_SystemProperties_native_1get and Java_android_os_SystemProperties_native_1get__Ljav a_lang_String_2Ljava_lang_String_2)
at android.os.SystemProperties.native_get(Native Method)
at android.os.SystemProperties.get(SystemProperties.j ava:64)
at android.os.Environment$UserEnvironment.<init>(Envi ronment.java:144)
at android.os.Environment.initForCurrentUser(Environm ent.java:82)
at android.os.Environment.<clinit>(Environment.java:7 6)
at android.os.Environment.getLegacyExternalStorageDir ectory(Environment.java:421)
at android.os.Debug.<clinit>(Debug.java:96)
at android.ddm.DdmHandleHello.handleHELO(DdmHandleHel lo.java:164)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHe llo.java:91)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch( DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleHello.handleFEAT(DdmHandleHel lo.java:176)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHe llo.java:93)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch( DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandl eProfiling.java:187)
at android.ddm.DdmHandleProfiling.handleChunk(DdmHand leProfiling.java:88)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch( DdmServer.java:171)
Aborted




I can't find any solid solution only workaround: restart eclipse/android studio, kill-start adb server, reconnect device. If it'll manage to work it only works for a short period of time.
Problem persists on 2 different machines with different usb cables. It's definitely some bug in lollipop (everything worked on kitkat), because as you can read on stackoverflow it happens on htc and asus devices too.
There are answers that manufacturers fixed them, but what can I do about Huawei?
I use Mac OS X so solutions for windows won't work for me.

I ofc have programmer mode on, usb debugging on, disabled confirmation on installation from adb. But the option "verify apps via usb" it grayed out and some people said that disabling it can make it working. Adb 1.0.32.