Troubleshooting
Problem
When trying to build an App in Android SDK you will get an error: Error:(6, 32) java: package com.ibm.tivoli.si.plugin does not exist
Symptom
Missing android-plugins.jar PermissionPlugin package reference
Cause
The import of the PermissionPlugin package needs to be manually added back from within Android Studio options.
Diagnosing The Problem
In Android Studio 2.3.3, when you try to compile a Maximo Anywhere app like the Transfers App, in Android Studio (Run as --> Android Studio on native folder) you get the following Compile errors:
Transfers.java
-------------------
import com.ibm.com.tivoli.si.plugin.PermissionsPlugin;
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
if(0 != (getApplicationInfo().flags = ApplicationInfo.FLAG_DEBUGGABLE)) {
WebView.setWebContentsDebuggingEnabled(true);
Messages Make ()panel)
---------------------------------
Information: Using javac 1.8.0_112-release to compile java sources
Information: java: Errors occurred while compiling module 'Transfers'
Information. 12/06/2017 11.44 AM - Compilation Completed with 3 errors, and 0 warnings in 4s 906ms
D:\IBM\mfpworkspace2\MaximoAnywhere\apps\Transfers\android\native\src\com\Transfers\Transfers.java
Error.(6, 32) java: package.com.ibm.tivoli.si.plugin does not exist
Error:(64, 9) java: cannot find symbol symbol: class PermissionsPlugin
location: class com.Transfers.Transfers
Error.(64, 48) java: cannot find symbol
symbol: class PermissionsPlugin
location: class com.Transfers.Transfers
----------------------------------------------------------
Android Monitor Terminal TODO Messages
Resolving The Problem
1. Right click on the WorkExecution App in the Project view of Android
Studio and select "Open Module Settings"
2. On the left hand selection go to "Libraries"
3. Select green plus sign and add the library:
i.e.
D:\IBM\mfworkspace2\MaximoAnywhere\apps\WorkExecution\android\native\libs\android-plugins.jar
4. Press ok and recompile Project.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg22012819