IBM Support

PackagemobileAndroid.cmd Fails After Installing Android SDK Tools Greater Than Revision 21

Troubleshooting


Problem

After installing Android SDK Tools revisions 22 and higher, you can no longer run packagemobileandroid.cmd.

Symptom

Out of the box IBM Maximo Mobile 7.5.1 for Android was developed to use Android SDK Tools revision 21. Since the release of mobile, Android has released revision 22.0.1



Using a revision greater than revision 21 will cause packagemobileandroid to fail with the following errors



-generate-app-jar:
[delete] Deleting: E:\ibm\smp\maximo\mobileapplications\android-
entry-points\mobileinv\libs\mobileinv.jar
[jar] Building jar: E:\ibm\smp\maximo\mobileapplications\android-
entry-points\mobileinv\libs\mobileinv.jar
[taskdef] Could not load definitions from resource anttasks.
properties. It could not be found.

-check-env:
[echo] ** Could not run package mobile for ANDROID-DEFAULT /
mobileinv.
[echo] Failed to package application: mobileinv detail error: The
following error occurred while executing this line:
[echo] E:\ibm\smp\maximo\mobiletools\maximo\packagemobile.xml:873:
The following error occurred while executing this line:
[echo] E:\ibm\smp\maximo\mobileapplications\android-entry-
points\mobileinv\android-build-r21-based.xml:399: Problem: failed to
create task or type checkenv
[echo] Cause: The name is undefined.
[echo] Action: Check the spelling.
[echo] Action: Check that any custom tasks/types have been
declared.
[echo] Action: Check that any <presetdef>/<macrodef> declarations
have taken place.

init:

packagemobileAndroid:
[echo] Preparing package for application: mobilewo

-verify-android-project-structure:
[mkdir] Created dir: E:\ibm\smp\maximo\temp\metadatafile\en\android-
entry-points\mobilewo
[echo] building resource file for application language: en
[echo] Failed to package application: mobilewo detail error:
Failed to perform task for application: MOBILEWO: details:
[echo] Unknown application name: MOBILEWO

init:

packageMobileAndroidProfiles:

init:

packagemobiledeployAndroidProfile:

init:

packagemobiledeployAndroidProfileLanguage:
[echo] Packaging Profile ANDROID-DEFAULT
[copy] Warning: E:\ibm\smp\maximo\mobiletools\package-
output\en\android-entry-points\android-default does not exist.
[mkdir] Created dir: E:
\ibm\smp\maximo\temp\installfolder\en\profiles\android-
default\installpack
[echo] ** Could not run package mobile for ANDROID-DEFAULT /
${mobile.applicationname}.

BUILD FAILED
E:\ibm\smp\maximo\mobiletools\maximo\packagemobile.xml:267: The
following error occurred while executing this line:
E:\ibm\smp\maximo\mobiletools\maximo\packagemobile.xml:906: The
following error occurred while executing this line:
E:\ibm\smp\maximo\mobiletools\maximo\packagemobile.xml:919: The
following error occurred while executing this line:
E:\ibm\smp\maximo\mobiletools\maximo\packagemobile.xml:947: E:
\ibm\smp\maximo\temp\installfolder\en\profiles\android-default\data
does not exist.


If you have upgraded the Android SDK Tools you will also need to upgrade the Android SDK Build-tools to the latest version.


Resolving The Problem

This issue has been resolved using new build.xml files. After installing the new files into your \maximo_home directory, mobile will not care what revision of the Android SDK Tools you have installed. These files are available upon request from Support.

[{"Product":{"code":"SSMAZG","label":"Maximo Mobile Suite"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF003","label":"Android"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21642251