I'm using some native Android code in a NB CN1 project. It builds just fine on my machine but the server build fails. The line numbers refer to import statements for the Android NotificationListenerService as well as subsequent calls to NLS methods. Am I missing something? I created the Interface and the InterfaceImpl and those actually work fine when I simply return a string and don't have the NLS imports or calls to it's methods, so I know how the Native stuff should work. Or do I?
Running java 1.8, Netbeans 8, Android 4.4 kitkat, CN1 is updated, Windows 7 Pro - updated.
Here is the Error logging from the server build:
-compile:
[javac] Compiling 373 source files to /tmp/build6043403560325340942xxx/Droid2PcAlerts/bin/classes
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:4: error: package android.service.notification does not exist
[javac] import android.service.notification.NotificationListenerService;
[javac] ^
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:5: error: package android.service.notification does not exist
[javac] import android.service.notification.StatusBarNotification;
[javac] ^
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:7: error: cannot find symbol
[javac] public class NLSInterfaceImpl extends NotificationListenerService {
[javac] ^
[javac] symbol: class NotificationListenerService
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:27: error: cannot find symbol
[javac] public void onNotificationPosted(StatusBarNotification sbn) {
[javac] ^
[javac] symbol: class StatusBarNotification
[javac] location: class NLSInterfaceImpl
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:35: error: cannot find symbol
[javac] public void onNotificationRemoved(StatusBarNotification sbn) {
[javac] ^
[javac] symbol: class StatusBarNotification
[javac] location: class NLSInterfaceImpl
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:26: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /tmp/build6043403560325340942xxx/Droid2PcAlerts/src/com/mlink/droid2pcalerts/NLSInterfaceImpl.java:34: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
BUILD FAILED
/home/ec2-user/android-sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/home/ec2-user/android-sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.