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

Plugins & Icenium Extension for Visual Studio - Build failed.

6 Answers 182 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.
Support
Top achievements
Rank 1
Support asked on 21 Oct 2013, 03:26 PM
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.

6 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 22 Oct 2013, 02:36 PM
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.
0
Support
Top achievements
Rank 1
answered on 23 Oct 2013, 03:42 PM
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)
0
Steve
Telerik team
answered on 23 Oct 2013, 03:46 PM
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.
0
Adam
Top achievements
Rank 1
answered on 28 Oct 2013, 07:41 PM
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?
0
Iva Koevska
Telerik team
answered on 29 Oct 2013, 07:17 AM
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.
0
Adam
Top achievements
Rank 1
answered on 29 Oct 2013, 01:58 PM
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
Tags
AppBuilder extension for Visual Studio
Asked by
Support
Top achievements
Rank 1
Answers by
Steve
Telerik team
Support
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Iva Koevska
Telerik team
Share this question
or