Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Update create package commands to sdkmanager #32

Open
adamantivm opened this issue Jun 27, 2017 · 3 comments
Open

Update create package commands to sdkmanager #32

adamantivm opened this issue Jun 27, 2017 · 3 comments

Comments

@adamantivm
Copy link
Contributor

Starting with version 25.3.1, the Android SDK Tools has deprecated the android command, used by i.e.: catkin_create_android_package.
These commands need to be updated to use the new available commands.

See #31

@jubeira
Copy link

jubeira commented Oct 20, 2017

This is certainly a problem; if you follow the tutorials and download the SDKs with Android Studio, you will end up downloading SDK > 25.x and you won't be able to create packages with the Catkin way. There might be a simple way around this.

@jubeira
Copy link

jubeira commented Oct 20, 2017

I did a quick search and didn't find a replacement for android create project.
The quickest fix I found is downloading build tools r25 and replacing the content of $ANDROID_HOME/tools with it: https://dl.google.com/android/repository/tools_r25.2.5-linux.zip.

Another possible approach to the problem is generating the required files from the catkin_create_android_package directly instead of relying in an external tool. It basically creates the bottom-level buildscript, dummy manifest, resources and Activity, with some parameters as the target SDK and so on. That should be doable in the Python script.

@jubeira
Copy link

jubeira commented Dec 26, 2018

See rosjava/android_core#286 (comment).

For now, to create a new Android app just create a package with the command line, and use android_tutorial_pubsub as a template, factoring out what you don't need.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants