This is a migrated thread and some comments may be shown as answers.

Getting Error while building the project .

7 Answers 480 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nitesh
Top achievements
Rank 1
Nitesh asked on 09 Feb 2014, 10:35 AM
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.

7 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Feb 2014, 01:24 PM
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)
0
Nitesh
Top achievements
Rank 1
answered on 24 Apr 2014, 04:44 PM
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
0
Iva Koevska
Telerik team
answered on 24 Apr 2014, 04:47 PM
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!

 
0
Iva Koevska
Telerik team
answered on 24 Apr 2014, 05:06 PM
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!

 
0
Nitesh
Top achievements
Rank 1
answered on 24 Apr 2014, 05:14 PM
Thank you IVA  for your reply. yes now my problem solved . i appreciate the way you are helping us .!!
0
Nitesh
Top achievements
Rank 1
answered on 25 Apr 2014, 09:27 AM
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.
0
Iva Koevska
Telerik team
answered on 25 Apr 2014, 09:44 AM
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!

 
Tags
AppBuilder extension for Visual Studio
Asked by
Nitesh
Top achievements
Rank 1
Answers by
Steve
Telerik team
Nitesh
Top achievements
Rank 1
Iva Koevska
Telerik team
Share this question
or