Bug 513131 - andmore vs. Android SDK >= 25.3.0 / andmore dosn't work any more.
Summary: andmore vs. Android SDK >= 25.3.0 / andmore dosn't work any more.
Status: NEW
Alias: None
Product: andmore
Classification: Tools
Component: General (show other bugs)
Version: 0.5.1   Edit
Hardware: PC Mac OS X
: P3 critical (vote)
Target Milestone: 0.5.2   Edit
Assignee: David Carver CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-06 03:12 EST by Clemens Hahn CLA
Modified: 2017-10-28 07:13 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Hahn CLA 2017-03-06 03:12:38 EST
After starting eclipse the following dialog is shown:

> Failed to get the the required ADT version number from SDK.
>
> The Android Developer Toolkit may not work property.

The eclipse DDMS console tells me:

> [2017-03-06 08:49:24 - DDMS] DDMS files not found: /opt/Android/sdk/tools/traceview 

(this files really does not exists!)

Trying to start a android app shows the following in the android console:

> [2017-03-06 08:59:29 - app-name] ------------------------------
> [2017-03-06 08:59:29 - app-name] Android Launch!
> [2017-03-06 08:59:29 - app-name] The connection to adb is down, and a severe error has occured.
> [2017-03-06 08:59:29 - app-name] You must restart adb and Eclipse.
> [2017-03-06 08:59:29 - app-name] Please ensure that adb is correctly located at '/opt/Android/sdk/platform-tools/adb' and can be executed.

So a few days everything works great. As so often I updated these days the android SDK.

Today I installed the nightly builds of andmore. But w/ a stable version of andmore I had the same issue (I think it was 0.5.1)

My current environment:

org.eclipse.andmore.android.basic.feature (0.5.2.201701251635) "Development Tools for Android"
org.eclipse.andmore.feature (0.5.2.201701251635) "Core Development Tools for Android"
org.eclipse.andmore.gldebugger.feature (0.5.2.201701251635) "Tracer for OpenGL ES"
org.eclipse.andmore.hierarchyviewer.feature (0.5.2.201701251635) "Hierarchy Viewer for Android"
org.eclipse.andmore.ndk.feature (0.5.2.201701251635) "Native Development Tools for Android"
org.eclipse.andmore.sign.feature (0.5.2.201701251635) "Signing Tools for Android"
org.eclipse.andmore.traceview.feature (0.5.2.201701251635) "Traceview for Android"

Android SDK Build-Tools: 25.0.1
Android Emulator: 25.3.0
Android SDK Platform-Tools: 25.3.0
Android SDK Tools: 25.3.1
Documentation for Android SDK: 1

If you need more information please inform me.

I think at least the directory structure of the android sdk was changed after my last update :/ Also I can not open the standalone SDK manager any more.
Comment 1 Clemens Hahn CLA 2017-03-06 03:32:19 EST
The Android SDK gets a huge change in Revision 25.3.0:

> Obsolete/deprecated tools have been removed:
>   android
>   ddms (instead see Using DDMS)
> [..]

https://developer.android.com/studio/releases/sdk-tools.html

Do you think I can revert my latest Android SDK update so I can continue developing my apps in the meantime w/ andmore? 
Will you try to adopt these SDK changes for andmore?
Comment 2 Clemens Hahn CLA 2017-03-07 02:57:26 EST
For everybody who needs a quick fix: I successfully downgraded my android SDK installation:

1. Duplicate your (too new) Android SDK folder (eg. w/ platform tools 25.3.0 inside)
2. Download the latest version of the platform tools w/ the necessary command line tools via http://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip [0]
3. Replace the `tools` folder inside your duplicated sdk directory w/ the content of the downloaded zip file

Repoint the `SDK Location` inside the eclipse preferences (Android > SDK Location) to your duplicated SDK directory w/ the replaced tools folder.

[0] http://stackoverflow.com/a/27043655/810944
Comment 3 David Carver CLA 2017-03-17 13:58:25 EDT
Clemens, I'm not surprised that you are running into some of these issues.  A lot of the tools that Andmore was built on that leveraged Android SDK features, have been replaced by the  Android Tooling team as they migrated the features to Android Studio.

Unfortunately, this leaves us with a lot of work and very little resources to address the issue.

Any help that you can provide in upgrading the integrated SDK to the latest version would be greatly appreciated.   Unfortunately at this time it may be a while before anyone on the existing team gets to it as we are all volunteers working on it when we can.

I've targeted this to be addressed for 0.5.2 but have no set time frame for when it will be done.
Comment 4 David Carver CLA 2017-03-17 14:00:25 EDT
Couple of things we may have to do.

1. Fork the old Android SDK Manager source code, and bring it into Andmore.
2. Update the Android Launching Emulators to use the new method of launching emulators.
3. Plead for lots of money so that we can fund a full time resource to work on this for the next several years. :)
Comment 5 Peter Most CLA 2017-10-03 13:18:02 EDT
(In reply to Clemens Hahn from comment #2)


> For everybody who needs a quick fix: I successfully downgraded my android
> SDK installation:
> 
> 1. Duplicate your (too new) Android SDK folder (eg. w/ platform tools 25.3.0
> inside)
> 2. Download the latest version of the platform tools w/ the necessary
> command line tools via
> http://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip [0]
> 3. Replace the `tools` folder inside your duplicated sdk directory w/ the
> content of the downloaded zip file
> 
> Repoint the `SDK Location` inside the eclipse preferences (Android > SDK
> Location) to your duplicated SDK directory w/ the replaced tools folder.
> 
> [0] http://stackoverflow.com/a/27043655/810944

For Linux users the link is: 
http://dl-ssl.google.com/android/repository/tools_r25.2.5-linux.zip
and I can confirm that it then works again!
Comment 6 Dan Dragut CLA 2017-10-28 07:13:06 EDT
Similarly for Windows:
http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip

Android SDK Manager
Revision 25.2.5
Add-on XML Schema #7
Repository XML Schema #11