Plugins & Icenium Extension for Visual Studio - Build failed.

7 posts, 1 answers
  1. Support
    Support avatar
    8 posts
    Member since:
    Jun 2013

    Posted 21 Oct 2013 Link to this post

    Hello,

    I try to include the BarcodeScanner plugin into my Icenium project, but once included I'm not able to Build the project anymore! The steps to reproduce my problem:

    1) Download the plugin from here: https://github.com/wildabeast/BarcodeScanner
    2) Extract downloaded zip
    3) Copy/Paste the extracted folder called "BarcodeScanner-master" in the Visual Studio Project "Plugins" folder (if the folder does not exist, create it)
    4) Open the project in Visual Studio
    5) Expand the "Plugins" folder & click on "Show all files" (the "BarcodeScanner-master" should appear under the "Plugins" folder but as a non-included folder)
    6) Right-click on the "BarcodeScanner-master" folder and click on "Include In Project"
    7) Icenium menu of Visual Studio -> "Build *ProjectX* in cloud" & click on "Build" (Android) button inside the popup

    After some minutes, Icenium tells me that the build failed and that I have to check the logs. My biggest problem is that there is, in fact, NO LOG... (at least in this folder "%localappdata%/Telerik/BlackDragon/Logs" I have nothing, so maybe I have to search somewhere else).

    And Visual Studio gives me this in the OUTPUT:
    Building package: [C:\bchete\myTeamWorksMobile\myNetWorksMobile\obj\Debug\myNetWorksMobile.zip]
            Sending build request for project myNetWorksMobile with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
    AppIdentifier=com.telerik.myNetWorksMobile
    ProjectName=myNetWorksMobile
    ProjectGuid=e7a8f74b-c6fa-4d1b-b371-39467c9557f5
    Platform=Android
    MobileProvisionIdentifier=
    iOSCodesigningIdentity=
    Configuration=Debug
    IsRunnable=true
    FrameworkVersion=3.0.0
    CorePlugins=org.apache.cordova.core.device;org.apache.cordova.core.AudioHandler;org.apache.cordova.core.battery-status;org.apache.cordova.core.camera;org.apache.cordova.core.console;org.apache.cordova.core.contacts;org.apache.cordova.core.device;org.apache.cordova.core.device-motion;org.apache.cordova.core.device-orientation;org.apache.cordova.core.dialogs;org.apache.cordova.core.file;org.apache.cordova.core.file-transfer;org.apache.cordova.core.geolocation;org.apache.cordova.core.globalization;org.apache.cordova.core.inappbrowser;org.apache.cordova.core.media-capture;org.apache.cordova.core.network-information;org.apache.cordova.core.splashscreen;org.apache.cordova.core.vibration
    AndroidPermissions=android.permission.CAMERA;android.permission.VIBRATE;android.permission.ACCESS_COARSE_LOCATION;android.permission.ACCESS_FINE_LOCATION;android.permission.ACCESS_LOCATION_EXTRA_COMMANDS;android.permission.READ_PHONE_STATE;android.permission.INTERNET;android.permission.RECEIVE_SMS;android.permission.RECORD_AUDIO;android.permission.MODIFY_AUDIO_SETTINGS;android.permission.READ_CONTACTS;android.permission.WRITE_CONTACTS;android.permission.WRITE_EXTERNAL_STORAGE;android.permission.ACCESS_NETWORK_STATE;android.permission.ACCOUNT_MANAGER;android.permission.GET_ACCOUNTS;android.permission.MANAGE_ACCOUNTS;android.permission.BROADCAST_STICKY
    DeviceOrientations=Portrait;Landscape
    iOSStatusBarStyle=Default
    AndroidHardwareAcceleration=false
    LiveSyncToken=
    C:\Users\bchete\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\ve3lvaro.u1b\Targets\Build.targets(98,3): error : Build failed: One or more errors occurred..
    System.AggregateException: One or more errors occurred. ---> Telerik.BlackDragon.Client.ServerClient.HttpRequestExtendedException: Status code not successful: (500) Internal Server Error
       at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at OperationExecutorExtensions.<RequestAndParseAsync>d__1f`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<BuildPackageAsync>d__18.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<BuildProjectAsync>d__1.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at System.Threading.Tasks.Task`1.get_Result()
       at Telerik.BlackDragon.Client.Build.CloudBuild.Execute()
    ---> (Inner Exception #0) Telerik.BlackDragon.Client.ServerClient.HttpRequestExtendedException: Status code not successful: (500) Internal Server Error
       at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at OperationExecutorExtensions.<RequestAndParseAsync>d__1f`2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<BuildPackageAsync>d__18.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<BuildProjectAsync>d__1.MoveNext()<---
     
    Done building project "myNetWorksMobile.iceproj" -- FAILED.
     
    Build FAILED.

    I tried to import the plugin with drag&drop from explorer to visual studio => same result.
    I tried to create the project in Icenium, import the plugin (zip file) from icenium and copy/paste the folder generated by Icenium in Visual Studio => same result (but the project Builds perfectly inside Icenium)
    I tried to say a prayer during the build process => same result ;-).

    If anyone can help me with this issue, I promise to pay him a beer if he comes one day in Switzerland.

    Thanks for help!!
    An almost depressive guy.
  2. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Oct 2013 Link to this post

    Hi,

    Icenium provides integration with the BarcodeScanner plugin, but it is modified in order to function successfully. Thus our suggestion is to create an Icenium project in Mist/Graphite, add the BarcodeScanner via the properties -> Plugins (for more info see Enable and configure integrated plugins in Icenium Graphite or Mist), export that app on your machine and get the BarcodeScanner plugin from that app and add it to your Visual Studio Icenium project.

    Adding plugins from the Visual Studio project directly would be added for the upcoming version in mid November.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Support
    Support avatar
    8 posts
    Member since:
    Jun 2013

    Posted 23 Oct 2013 Link to this post

    Hi Steve!

    It worked :-), thanks!! 

    Small remark: right-click & include the folder in Visual Studio DOES NOT WORK! You have to drag-n-drop the folder in Visual Studio (remember to use the same account for the explorer & visual studio to make the drag-n-drop -> I was running Visual Studio in administrator mode and the drag-n-drop is not working in this case)
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 23 Oct 2013 Link to this post

    Hello,

    Glad it worked. We're aware of this limitation and would address it for subsequent version of the Icenium extension for VS.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  5. Adam
    Adam avatar
    8 posts
    Member since:
    Oct 2013

    Posted 28 Oct 2013 Link to this post

    What is different between the Graphite exported plugin and the one from Githb?

    I am trying to use a different  plug-in (an ios phone dialer) and although I have read the documentation related to developing and using custom plug-in at least a million times, I am not achieving success.  Have I been wasting my time?
  6. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 29 Oct 2013 Link to this post

    Hi Adam,

    Earlier in this thread, users have been discussing the BarcodeScanner plugin. In Icenium Graphite and Mist, the BarcodeScanner plugin is offered as an integrated plugin - which basically is a custom Apache Cordova plugin that the Icenium team verifies and constantly updates to keep it compatible with each new version of Icenium and Apache Cordova. For the latest version of Apache Cordova, users have to do little to no configuration work on the integrated plugins aside from enabling them from the user interface. Thanks to an updated plugin.xml, users do not need to add <script> references in their index.html to use the latest versions of the integrated plugins in Apache Cordova 3.0+ projects. The good news is that the integrated plugins are also coming to the Visual Studio extension.

    Having explained that subtle difference between the custom and the integrated plugins, let's move to your issue with the iPhone dialer plugin. Adding a custom plugin in Visual Studio is described here. Please, note that you need to add the unpacked plugin by drag-and-drop to the Plugins folder in the Solution Explorer. Other approaches will not work.

    I have been browsing the web for iPhone dialer plugins and I have come across this one. If this is the custom plugin you are attempting to use, there are a few issues with it that will prevent you from using it with Icenium. Namely, it is not updated to Cordova 3.0, the directory structure is invalid, and it does not provide a plugin.xml file.

    You might want to use this forked version of the iPhone dialer plugin which is updated to support Apache Cordova 3.0.0, contains a valid plugin.xml, and builds successfully in Visual Studio. Download the zip, unpack it, and drag the folder to the Plugins folder in the Solution Explorer. The usage example code works with no further configuration work.
    Regards,
    Iva Koevska
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  7. Adam
    Adam avatar
    8 posts
    Member since:
    Oct 2013

    Posted 29 Oct 2013 Link to this post

    Iva,
    That fork was indeed the plugin I had originally tried.
    Having gotten a confirmation that you had tested this plugin yourself successfully led me to try it one more time.  I think my error was that I was trying to detect the plug-in (window['phonedialer') too early in the application life-cycle.  Once I move my "initialization code"  later in the life-cycle everything worked as desired.

    Thank you for your time and effort.
    -Adam
Back to Top