ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Problem building Android_Core (package app_manager does not exist)

asked 2013-08-20 04:45:20 -0500

llSourcell gravatar image

updated 2014-04-20 14:09:44 -0500

ngrennan gravatar image

I'm following this tutorial to setup my Android environment

http://www.ros.org/wiki/turtlebot_android/Tutorials/groovy/Installation

Currently I'm at this stage in the tutorial

roscd android_core
# Note: you may need to adjust the argument to the `--target` option based
# which Android API version you're using.

# You may have to kill gradle if it's already running.

android update project --path ./android_gingerbread_mr1/ --target android-17
android update project --path ./android_honeycomb_mr2/ --target android-17
cd android_gingerbread_mr1
../gradlew debug
cd ../android_honeycomb_mr2
../gradlew debug

When i do the first ../gradlew debug it throws java errors saying 'app manager' does not exist. The problem is I installed 'app manager' and can roscd to 'app_manager'

Error

lucid@lucid-MacBookPro:~/android/android_core/android_gingerbread_mr1$ ../gradlew clean debug
:android_gingerbread_mr1:clean
> Building > :android_gingerbread_mr1:deployLibs > Resolving dependencies ':andr:android_gingerbread_mr1:deployLibs
:android_gingerbread_mr1:updateProject
Updated local.properties
No project name specified, using project folder name 'android_gingerbread_mr1'.
If you wish to change it, edit the first line of build.xml.
Added file /home/lucid/android/android_core/android_gingerbread_mr1/build.xml
Added file /home/lucid/android/android_core/android_gingerbread_mr1/proguard-project.txt
:android_gingerbread_mr1:debug
Buildfile: /home/lucid/android/android_core/android_gingerbread_mr1/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 22.0.5
 [checkenv] Installed at /home/lucid/Desktop/android-sdk-linux

-setup:
     [echo] Project Name: android_gingerbread_mr1
  [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 18.0.1
     [echo] Resolving Build Target for android_gingerbread_mr1...
[gettarget] Project Target:   Android 4.3
[gettarget] API level:        18
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/lucid/android/android_core/android_gingerbread_mr1/bin
    [mkdir] Created dir: /home/lucid/android/android_core/android_gingerbread_mr1/bin/res
    [mkdir] Created dir: /home/lucid/android/android_core/android_gingerbread_mr1/gen
    [mkdir] Created dir: /home/lucid/android/android_core/android_gingerbread_mr1/bin/classes
    [mkdir] Created dir: /home/lucid/android/android_core/android_gingerbread_mr1/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for android_gingerbread_mr1...
[dependency] Library dependencies:
[dependency] No Libraries
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 31 source files to /home/lucid/android/android_core/android_gingerbread_mr1/bin/classes
    [javac] /home/lucid/android/android_core/android_gingerbread_mr1/src/org/ros/android/robotapp/AppManager.java:35: error: package app_manager does not exist
    [javac] import app_manager.AppList;
    [javac]                   ^
    [javac] /home/lucid/android/android_core/android_gingerbread_mr1/src/org/ros/android/robotapp/AppManager.java:36: error: package app_manager does not exist
    [javac] import app_manager.ListApps;
    [javac]                   ^
    [javac] /home/lucid/android/android_core/android_gingerbread_mr1/src/org/ros/android/robotapp/AppManager.java:37: error: package app_manager does not exist
    [javac] import app_manager.ListAppsRequest;
    [javac]                   ^
    [javac] /home/lucid/android/android_core/android_gingerbread_mr1/src/org/ros/android/robotapp/AppManager.java:38: error: package app_manager does not exist
    [javac] import app_manager.ListAppsResponse;
    [javac]                   ^
    [javac] /home/lucid/android/android_core/android_gingerbread_mr1/src/org/ros/android/robotapp ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-08-20 16:37:13 -0500

Daniel Stonier gravatar image

It's not finding the app manager messages. These are compiled when you gradle rosjava messages. Possibly did you install the app_manager package after you gradled rosjava_messages?

If that is the case, you'll need to clean and rebuild rosjava_core, android_core and then android_apps. In some cases with these kinds of errors you also need to clean out your local maven repository as well (~/.m2) which is where the jar's go, but that shouldn't be necessary in this case.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-08-20 04:45:20 -0500

Seen: 1,662 times

Last updated: Aug 20 '13