Getting Error while building the project .

9 posts, 0 answers
  1. Nitesh
    Nitesh avatar
    3 posts
    Member since:
    Dec 2013

    Posted 09 Feb 2014 Link to this post

    i have imported one plugin here is the link of that plugin
      http://www.telerik.com/clientsfiles/403efa9b-d11f-4b93-a1f0-2e68f11cfe21_SmsPlugin.zip?sfvrsn=0 .
    it works fine on simulator but when i build for android it gives this error .
    -set-mode-check:

    -set-release-mode:

    -release-obfuscation-check:
         [echo] proguard.config is ${proguard.config}

    -pre-build:

    -check-env:
     [checkenv] Android SDK Tools Revision 22.0.5
     [checkenv] Installed at /Users/builder/android-sdk-macosx

    -setup:
         [echo] Project Name: MobileProject8
      [gettype] Project Type: Application

    -build-setup:
    [getbuildtools] Using latest Build Tools: 18.0.1
         [echo] Resolving Build Target for MobileProject8...
    [gettarget] Project Target:   Android 4.3
    [gettarget] API level:        18
         [echo] ----------
         [echo] Creating output directories if needed...
        [mkdir] Created dir: /tmp/8c272f9de3f84423bc57c586d07bfa39/bin
        [mkdir] Created dir: /tmp/8c272f9de3f84423bc57c586d07bfa39/bin/res
        [mkdir] Created dir: /tmp/8c272f9de3f84423bc57c586d07bfa39/gen
        [mkdir] Created dir: /tmp/8c272f9de3f84423bc57c586d07bfa39/bin/classes
        [mkdir] Created dir: /tmp/8c272f9de3f84423bc57c586d07bfa39/bin/dexedLibs
         [echo] ----------
         [echo] Resolving Dependencies for MobileProject8...
    [dependency] Library dependencies:
    [dependency] No Libraries
         [echo] ----------
         [echo] Building Libraries with 'release'...
       [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 48 source files to /tmp/8c272f9de3f84423bc57c586d07bfa39/bin/classes
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:29: error: package org.apache.cordova.api does not exist
        [javac] import org.apache.cordova.api.CallbackContext;
        [javac]                              ^
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:30: error: package org.apache.cordova.api does not exist
        [javac] import org.apache.cordova.api.CordovaPlugin;
        [javac]                              ^
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:31: error: package org.apache.cordova.api does not exist
        [javac] import org.apache.cordova.api.PluginResult;
        [javac]                              ^
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:33: error: cannot find symbol
        [javac] public class SmsPlugin extends CordovaPlugin {
        [javac]                                ^
        [javac]   symbol: class CordovaPlugin
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:37: error: cannot find symbol
        [javac] public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
        [javac]                                                      ^
        [javac]   symbol:   class CallbackContext
        [javac]   location: class SmsPlugin
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:46: error: cannot find symbol
        [javac] callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, result));
        [javac]                                     ^
        [javac]   symbol:   class PluginResult
        [javac]   location: class SmsPlugin
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:46: error: package PluginResult does not exist
        [javac] callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, result));
        [javac]                                                              ^
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:50: error: cannot find symbol
        [javac] callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, ex.getMessage()));
        [javac]                                     ^
        [javac]   symbol:   class PluginResult
        [javac]   location: class SmsPlugin
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:50: error: package PluginResult does not exist
        [javac] callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, ex.getMessage()));
        [javac]                                                              ^
        [javac] /tmp/8c272f9de3f84423bc57c586d07bfa39/src/com/phonegap/plugins/smsplugin/SmsPlugin.java:36: 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] 10 errors


    Done building project "MobileProject8.proj" -- FAILED.
    .
    Done building project "MobileProject8.iceproj" -- FAILED.

    Build FAILED.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Feb 2014 Link to this post

    Hello Nitesh,

    Since Cordova 3.0, the org.apache.cordova.api namespace is obsolete. You will need to remove "api" from the import statement:

    Was:

    import org.apache.cordova.api.Plugin; 
    import org.apache.cordova.api.PluginResult;

    Should be:

    import org.apache.cordova.CordovaPlugin; 
    import org.apache.cordova.PluginResult;

    For more information: Cordova 3.0 – Stuff You Should Know.

    Regards,
    Steve
    Telerik
    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  3. Nitesh
    Nitesh avatar
    8 posts
    Member since:
    Oct 2013

    Posted 24 Apr 2014 Link to this post

    Hello Steve.
    thank you yes now am not getting this error but when i deploy this give another error.i have attached the image . please check let me know
  4. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Apr 2014 Link to this post

    Hi Nitesh,

    We are currently experiencing issues with our build services as reported here. The team is working hard on identifying and resolving the issue. Our goal is to supply a fix as soon as possible.

    You can keep an eye on the status of this in the forums here or on the official Telerik status page.

    As soon as the issue is resolved, we will update all related threads.

    Thank you for your patience.


    Regards,
    Iva Koevska
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  5. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Apr 2014 Link to this post

    Hi Nitesh,

    The issue has been identified and resolved. You should now be able to build your apps.

    Thank you for your patience and understanding during this incident. Don't hesitate to let us know if you are still experiencing build related issues.

    Regards,
    Iva Koevska
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  6. Nitesh
    Nitesh avatar
    8 posts
    Member since:
    Oct 2013

    Posted 24 Apr 2014 in reply to Iva Koevska Link to this post

    Thank you IVA  for your reply. yes now my problem solved . i appreciate the way you are helping us .!!
  7. Nitesh
    Nitesh avatar
    8 posts
    Member since:
    Oct 2013

    Posted 25 Apr 2014 Link to this post

    Hello Getting two errors.
    1. firstly my application is working fine on the emulator , but when i run on my device first it shows one text: the application is being unpacked after one minutes it crashed . and shows tthis error.
    "the connection to the server was unsuccesfull ,(file :///storage/sdcard0/icenium/com. telerik.mobileproject2/index.html)"

    2. in my application am sending data to to the server so from emulator am able to send the data to server but when i run same application in my device then am unable to send data to server.
    please help.
  8. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 25 Apr 2014 Link to this post

    Hi Nitesh,

    The error you are getting is typically related to Android devices detaching their SD card storage. When your app is built with LiveSync ON (aka in Debug mode), the package is unpacked on the SD card, and all changes are refreshed there. If Android cannot find the SD card, it cannot load the contents of your app and your app will crash with the reported error message.

    When you're getting this error, is your device connected to your computer? If yes, try playing around with the USB connection type/mode of your device - try switching between Media storage and any other options you have there. Explore your device options and look for anything that might be detaching your SD card.

    Another thing you can do is build your app in Release mode. This will not require your app being unpacked on the SD card and you will be able to run your app.

    Let us know if your data transfer issues still occur afterwards.

    Thank you! 

    Regards,
    Iva Koevska
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  9. Nitesh
    Nitesh avatar
    8 posts
    Member since:
    Oct 2013

    Posted 25 Apr 2014 in reply to Iva Koevska Link to this post

    Hello 

    This time i build my application in release mode. this time this is giving another error .

    the connection to the server was unsuccessful .(file:///adroid_asses/www/index.html)
    after that my application crash automatically. 
    please help.
Back to Top