Anyone tried NFC plugin with rollbase mobile - Forum - Mobile - Progress Community

Anyone tried NFC plugin with rollbase mobile

 Forum

Anyone tried NFC plugin with rollbase mobile

  • Hi All,

    Is there anybody successfully integrated and used the NFC plugin with the rollbase mobile? 

    I am currently trying this, but getting error when build the android apk.

    Thanks in advance,

    Ithrees.

    Log says:


    Started by user jboss
    Building remotely on android-slave in workspace /srv/appery/jenkins/root/workspace/22546-android
    
    Deleting project workspace... [copy-to-slave] Copying '2429/22546/android/**/*', excluding nothing, from 'file:/srv/appery/temp/build_temp/' on the master to 'file:/srv/appery/jenkins/root/workspace/22546-android/' on 'android-slave'.
    [22546-android] $ /bin/sh -xe /tmp/hudson6601715374383203142.sh
    [22546-android] $ /bin/sh -xe /tmp/hudson4757217907385406606.sh
    Extracting sources from archive
    You have reached a restricted system for the use of authorized users only.
             Individuals using this computer system without authority or in excess of their
             authority are subject to having all their activities on this system monitored
             and recorded by system personnel. Anyone using this system expressly consents
             to such monitoring and is advised that if such monitoring reveals possible
             evidence of criminal activity system personal may provide the evidence of
             such monitoring to the appropriate authorities.
    + mvn clean package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO] 
    [INFO] PlugIn_Test-parent
    [INFO] barcode scanner
    [INFO] PlugIn_Test
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building PlugIn_Test-parent 1.1-parent
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ PlugIn_Test-parent ---
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building barcode scanner 1.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:generate-sources (default-generate-sources) @ BarcodeScanner ---
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] Manifest merging disabled. Using project manifest only
    [INFO] /srv/app/asdk/build-tools/19.1.0/aapt [package, --non-constant-id, -m, -J, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/generated-sources/r, -M, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/assets, -I, /srv/app/asdk/platforms/android-10/android.jar]
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BarcodeScanner ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ BarcodeScanner ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 239 source files to /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/classes
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/client/android/share/ShareActivity.java: Some input files use or override a deprecated API.
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/client/android/share/ShareActivity.java: Recompile with -Xlint:deprecation for details.
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/BarcodeFormat.java: Some input files use unchecked or unsafe operations.
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/BarcodeFormat.java: Recompile with -Xlint:unchecked for details.
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:proguard (default-proguard) @ BarcodeScanner ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ BarcodeScanner ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/test/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ BarcodeScanner ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ BarcodeScanner ---
    [INFO] No tests to run.
    [INFO] 
    [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ BarcodeScanner ---
    [INFO] Building jar: /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.jar
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:apklib (default-apklib) @ BarcodeScanner ---
    [INFO] /srv/app/asdk/build-tools/19.1.0/aapt [package, -f, -M, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/assets, -I, /srv/app/asdk/platforms/android-10/android.jar, -F, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.ap_]
    [INFO] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/libs does not exist, looking for libraries in target directory.
    [INFO] Building jar: /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building PlugIn_Test 1.1
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.apache.cordova:cordova:jar:3.5.1 is missing, no dependency information available
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ PlugIn_Test ---
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:generate-sources (default-generate-sources) @ PlugIn_Test ---
    [DEBUG] Expanding: /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib into /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0
    [DEBUG] expand complete
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] Manifest merging disabled. Using project manifest only
    [INFO] /srv/app/asdk/build-tools/19.1.0/aapt [package, -m, -J, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/generated-sources/r, -M, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/AndroidManifest.xml, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/assets, -I, /srv/app/asdk/platforms/android-14/android.jar]
    [INFO] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res/xml/config.xml:30: error: Error parsing XML: not well-formed (invalid token)
    [ERROR] Error when generating sources.
    org.apache.maven.plugin.MojoExecutionException: 
    	at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:493)
    	at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:204)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test && /srv/app/asdk/build-tools/19.1.0/aapt package -m -J /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/generated-sources/r -M /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/AndroidManifest.xml -S /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res -S /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res --auto-add-overlay -A /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/assets -I /srv/app/asdk/platforms/android-14/android.jar, Result = 1
    	at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:246)
    	at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:489)
    	... 22 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] PlugIn_Test-parent ................................ SUCCESS [0.263s]
    [INFO] barcode scanner ................................... SUCCESS [28.086s]
    [INFO] PlugIn_Test ....................................... FAILURE [0.988s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 34.426s
    [INFO] Finished at: Tue Nov 11 06:28:49 UTC 2014
    [INFO] Final Memory: 20M/96M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:generate-sources (default-generate-sources) on project PlugIn_Test: MojoExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test && /srv/app/asdk/build-tools/19.1.0/aapt package -m -J /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/generated-sources/r -M /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/AndroidManifest.xml -S /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res -S /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res --auto-add-overlay -A /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/assets -I /srv/app/asdk/platforms/android-14/android.jar, Result = 1 -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :PlugIn_Test
    Build step 'Execute shell' marked build as failure
    
    Deleting project workspace... 
    done
    
    Finished: FAILURE

  • Hi ithrees,
     
    I saw below error in your stacktrace:
     
    [INFO] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res/xml/config.xml:30: error: Error parsing XML: not well-formed (invalid token)
     
    Check the config.xml file because parser complaining there is a non well-formed character or invalid token inside there.
     
    Hope it helps.
     
    Marthen Luther
    System Engineer, Southeast Asia
    Progress
    Progress Software Corporation (S) Pte Ltd | 150 Beach Road #20-03/04 Gateway West Singapore 189720
    DID: +65-63035423 | M: +65-91073708 | E: mluther@progress.com | W: www.progress.com
     
    Twitter
    Facebook
    LinkedIn
    Google+
     
     
    From: ithrees [mailto:bounce-ithrees@community.progress.com]
    Sent: Tuesday, 11 November, 2014 2:59 PM
    To: TU.Rollbase@community.progress.com
    Subject: [Technical Users - Rollbase] Anyone tried NFC plugin with rollbase mobile
     
    Thread created by ithrees

    Hi All,

    Is there anybody successfully integrated and used the NFC plugin with the rollbase mobile? 

    I am currently trying this, but getting error when build the android apk.

    Thanks in advance,

    Ithrees.

    Log says:


    Started by user jboss
    Building remotely on android-slave in workspace /srv/appery/jenkins/root/workspace/22546-android
     
    Deleting project workspace... [copy-to-slave] Copying '2429/22546/android/**/*', excluding nothing, from 'file:/srv/appery/temp/build_temp/' on the master to 'file:/srv/appery/jenkins/root/workspace/22546-android/' on 'android-slave'.
    [22546-android] $ /bin/sh -xe /tmp/hudson6601715374383203142.sh
    [22546-android] $ /bin/sh -xe /tmp/hudson4757217907385406606.sh
    Extracting sources from archive
    You have reached a restricted system for the use of authorized users only.
             Individuals using this computer system without authority or in excess of their
             authority are subject to having all their activities on this system monitored
             and recorded by system personnel. Anyone using this system expressly consents
             to such monitoring and is advised that if such monitoring reveals possible
             evidence of criminal activity system personal may provide the evidence of
             such monitoring to the appropriate authorities.
    + mvn clean package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO] 
    [INFO] PlugIn_Test-parent
    [INFO] barcode scanner
    [INFO] PlugIn_Test
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building PlugIn_Test-parent 1.1-parent
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ PlugIn_Test-parent ---
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building barcode scanner 1.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:generate-sources (default-generate-sources) @ BarcodeScanner ---
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] Manifest merging disabled. Using project manifest only
    [INFO] /srv/app/asdk/build-tools/19.1.0/aapt [package, --non-constant-id, -m, -J, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/generated-sources/r, -M, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/assets, -I, /srv/app/asdk/platforms/android-10/android.jar]
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BarcodeScanner ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ BarcodeScanner ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 239 source files to /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/classes
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/client/android/share/ShareActivity.java: Some input files use or override a deprecated API.
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/client/android/share/ShareActivity.java: Recompile with -Xlint:deprecation for details.
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/BarcodeFormat.java: Some input files use unchecked or unsafe operations.
    [WARNING] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/com/google/zxing/BarcodeFormat.java: Recompile with -Xlint:unchecked for details.
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:proguard (default-proguard) @ BarcodeScanner ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ BarcodeScanner ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/src/test/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ BarcodeScanner ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ BarcodeScanner ---
    [INFO] No tests to run.
    [INFO] 
    [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ BarcodeScanner ---
    [INFO] Building jar: /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.jar
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:apklib (default-apklib) @ BarcodeScanner ---
    [INFO] /srv/app/asdk/build-tools/19.1.0/aapt [package, -f, -M, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/assets, -I, /srv/app/asdk/platforms/android-10/android.jar, -F, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.ap_]
    [INFO] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/libs does not exist, looking for libraries in target directory.
    [INFO] Building jar: /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building PlugIn_Test 1.1
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.apache.cordova:cordova:jar:3.5.1 is missing, no dependency information available
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ PlugIn_Test ---
    [INFO] 
    [INFO] --- android-maven-plugin:3.6.1:generate-sources (default-generate-sources) @ PlugIn_Test ---
    [DEBUG] Expanding: /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib into /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0
    [DEBUG] expand complete
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] Manifest merging disabled. Using project manifest only
    [INFO] /srv/app/asdk/build-tools/19.1.0/aapt [package, -m, -J, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/generated-sources/r, -M, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/AndroidManifest.xml, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res, -S, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/assets, -I, /srv/app/asdk/platforms/android-14/android.jar]
    [INFO] /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res/xml/config.xml:30: error: Error parsing XML: not well-formed (invalid token)
    [ERROR] Error when generating sources.
    org.apache.maven.plugin.MojoExecutionException: 
            at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:493)
            at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:204)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test && /srv/app/asdk/build-tools/19.1.0/aapt package -m -J /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/generated-sources/r -M /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/AndroidManifest.xml -S /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/res -S /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res --auto-add-overlay -A /srv/appery/jenkins/root/workspace/22546-android/2429/22546/android/PlugIn_Test/assets -I /srv/app/asdk/platforms/android-14/android.jar, Result = 1
            at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:246)
            at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:489)
            ... 22 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] PlugIn_Test-parent ................................ SUCCESS [0.263s]
    [INFO] barcode scanner ................................... SUCCESS [28.086s]
    [INFO] PlugIn_Test ....................................... FAILURE [0.988s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 34.426s
    [INFO] Finished at: Tue Nov 11 06:28:49 UTC 2014
    [INFO] Final Memory: 20M/96M
  • Hi Marthen,

    Thank you for your reply. 

    This my config.xml file=========================================

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns = "http://www.w3.org/ns/widgets"
    id = "io.cordova.helloCordova"
    version = "2.0.0">
    <name>Hello Cordova</name>

    <description>
    A sample Apache Cordova application that responds to the deviceready event.
    </description>

    <author href="http://cordova.io" email="dev@cordova.apache.org">
    Apache Cordova Team
    </author>

    <access origin="*"/>

    <!-- <content src="http://mysite.com/myapp.html" /> for external pages -->
    <content src="index.html" />

    <preference name="loglevel" value="DEBUG" />
    <!--
    <preference name="splashscreen" value="resourceName" />
    <preference name="backgroundColor" value="0xFFF" />
    <preference name="loadUrlTimeoutValue" value="20000" />
    <preference name="InAppBrowserStorageEnabled" value="true" />
    <preference name="disallowOverscroll" value="true" />
    -->

    <!-- Phonegap plugins -->
    <#list pluginsData as pluginsData>
    ${pluginsData}
    </#list>

    <feature name="PushNotification">
    <param name="android-package" value="com.phonegap.plugins.pushnotifications.PushNotifications" />
    </feature>
    <feature name="NfcPlugin">
    <param name="android-package" value="com.chariotsolutions.nfc.plugin.NfcPlugin"/>
    <param name="onload" value="true" />
    </feature>

    </widget>

    ========================================================

    I only added this future tag for nfc plugin others come as default.

    <feature name="NfcPlugin">
    <param name="android-package" value="com.chariotsolutions.nfc.plugin.NfcPlugin"/>
    <param name="onload" value="true" />
    </feature>

    Please let me know any other things I am missing here.

    Thanks and Best Regards,
    Ithrees

  • <#list pluginsData as pluginsData>
    ${pluginsData}
    </#list>

    Don't think <# is a valid token in XML.


  • I removed the # and tried earlier, got the same error.

    But the same code worked fine before adding the nfc <feature> tag, thats what confusing.

  • Hello,

    I think that you might get more feedback on this issue by posting it to the Mobile forum.

    If this is an issue that is blocking you could also contact Technical Support so that an engineer is assisting you and the engineer can contact the appropriate development resources.

    Thanks.

  • Hi Bal,

    I got the same error. I want to attach other Cordova plugins and get the same error on config.xml. Is it possible to attach external plugins into rollbase mobile?

    @Lthrees: Have you solved the issue?

  • Hi Bal,
     
    There seem to be problem with the generation of binaries when we use third party plug-ins as part of the mobile app in the Rollbase Mobil environment. i.e., the generated config.xml file has few wrong entries. This issue got fixed and will be available in production environment during 3.1 release (scheduled in early December).
     
    As a workaround please follow below instructions:
     
    Please take a backup of the complete project (either from Rollbase through ‘Generate XML or from Mobile App Builder) before modifying the files below
     

    1)      Open the config.xml and remove following code

    <#list pluginsData as pluginsData>
        ${pluginsData}
    </#list>
     
     
     

     

     

     

     


    2)      Place the custom code which is required for the third party plug-in to work (example as below)

    <feature name="Toast">
             <param name="android-package" value="nl.xservices.plugins.Toast" />
      </feature>
     
     

     
     
     
     

    3)      Open cordova_plugin.js file (Source -> <App name> -> assets -> www -> Files ->resources -> lib) and remove following code

    < #list pluginsData as pluginsData > $ {
                          pluginsData
                          } < /#list>
     
     
    <#list pluginsMetadata as pluginsMetadata>
                       ${pluginsMetadata}
                       </#list>
     
     
     
     
     
     
     
     
     
     
     
     

    Note: I tried adding Toast phonegap plug-in (https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin) and doing above steps solved the problem and was able to generate .apk file. However, there is some problem with the given java code (toast.java) which do not as expected from the device.
     
    Hope this helps.
     
    Thanks and Regards,
    Anil Kumar.
     
    From: bal [mailto:bounce-bal@community.progress.com]
    Sent: Saturday, November 29, 2014 4:56 PM
    To: TU.Mobile@community.progress.com
    Subject: RE: [Technical Users - Mobile] Anyone tried NFC plugin with rollbase mobile
     
    Reply by bal

    Hi Bal,

    I got the same error. I want to attach other Cordova plugins and get the same error on config.xml. Is it possible to attach external plugins into rollbase mobile?

    @Lthrees: Have you solved the issue?

    Stop receiving emails on this subject.

    Flag this post as spam/abuse.

  • Hi Anil, thanks for the great explanation, and it works. I can compile it again. But im now also busy to attach social sharing. If we can not embed the toast plugin (which is one of the easiest one), can we attach other cordova plugins like social sharing. I have tried a lot of steps, but im not able to embed it correctly. Have you ever get it worked?

  • Steps to setup the Local Notification plugin.pdf

    Hey Bal,

    Just tried the social share plugin and was able to get it working.

    I am going to add a document I built for adding a local notification plugin that should give you the basic steps if you substitute in the Social Share plugin in for the Local Notification plugin. 

    So the differences are (number represents the point in the attached document that changes):

    1) Social Sharing available at https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin. I downloaded and used the most recent release.

    4) The folder to create should be "nl.xservices.plugins.SocialSharing"

    5) The .js file would be "SocialSharing.js" and its in the "SocialSharing-PhoneGap-Plugin-4.3.8\www" directory.

    6) The top code to add is:
    -------------------

    cordova.define("nl.xservices.plugins.SocialSharing", function (require, exports, module) {
    ===========
    and should go at the start of the file. The bottom code to add is the same.

    8) The code to add in the cordova_plugin.js file is:

    ---------------------

    ,

    {
    "file": "plugins\\nl.xservices.plugins.SocialSharing\\www\\SocialSharing.js",
    "id": "nl.xservices.plugins.SocialSharing",
    "clobbers": [
    "window.plugins.socialsharing"
    ]
    }

    ============

    9) The text for config.xml would be:

    -------------------


    <feature name="SocialSharing">
    <param name="android-package" value="nl.xservices.plugins.SocialSharing" />
    </feature>

    ===========

    10) The directory structure would be "nl\xservices\plugins"

    11) There is only one java file to upload for the Social Sharing plugin: SocialSharing.java

    13) the code to add to the AndroidManifest.xml file is:

    ---------

         <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    ============

    14) Not needed

    20) Code in here could be something like:

    ------------

    window.plugins.socialsharing.share('My message',
    null,
    null,
    'http://www.x-services.nl');

    =========

    You should be able to compile this for Android and run it on an Android device. 

    Let me know if this helps (and in fact if it makes any sense at all. It is hard to explain. If push comes to shove, perhaps I can share my test project with you).

  • Anil, Philip,

    Both thanks a lot. I will give it a try. What a great explanation....

  • Anil, Philip,

    In Android it works like a charm! I want to add this also on IOS, is there a way to add this without xcode? Have you managed that?

  • Because i need to add frameworks. I don't know whether that is possible with Rollbase Mobile.

  • Please take a look at

    documentation.progress.com/.../mobile-app-builder