-
Notifications
You must be signed in to change notification settings - Fork 36
catkin_create_android_project error #31
Comments
@hungbv11 which version of the Android SDK are you using? |
@hungbv11 it seems that starting with Android SDK Tools 25.3.1, the Another (worse) workaround is to try to downgrade your Android SDK Tools to lower than 25.3.1. Finally, you could create the android package manually, by copying another existing example such as rosjava_extras I hope that helps. Meanwhile, I'll add an issue to remember to update the rosjava build tools to this Android SDK change. |
Hi @adamantivm |
hi, when I run "catkin_create_android_pkg androidpkg1 android_core, rosjava_core, std_msgs", I get the warning Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Command: ['android', 'create', 'project', '-n', 'androidp1', '-p', '/home/gy/myandroid/androidpkg1/androidp1', '-k', 'com.github.rosjava.android.androidp1', '-t', 'android-15', '-a', 'Androidp1'] |
The problem is not the deprecated Gradle features; we are using Gradle 4.10 for every repository right now. The cause of the issue is in this comment: #31 (comment); Google deprecated the tool that allowed this command to work at some point in the past. See #32 and #32 (comment) for a workaround. |
hi, I sloved the problem, it caused by the environment var include the sdk tools path, thx very much. |
I'm having an issue when create an android project. It shows the following error:
`~/Workspaces/ros/arduino_p1/src/p1_remote$ catkin_create_android_project -t 25 -p lan.robonet.p1_remote.remote remote
Creating android project
Name : remote
Target Ver: 25
Java Name : lan.robonet.p1_remote.remote
Activity : Remote
Command: ['android', 'create', 'project', '-n', 'remote', '-p', '/home/randy/Workspaces/ros/arduino_p1/src/p1_remote/remote', '-k', 'lan.robonet.p1_remote.remote', '-t', 'android-25', '-a', 'Remote']
The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
Error
[error] init() takes at least 3 arguments (2 given) : <type 'exceptions.TypeError'>`
Any idea how to solve it would be greatly appreciated!
The text was updated successfully, but these errors were encountered: