不能科尔多瓦 - 插件-UID添加到Visual Studio 2013项目 [英] Cannot add cordova-plugin-uid to Visual Studio 2013 project

查看:409
本文介绍了不能科尔多瓦 - 插件-UID添加到Visual Studio 2013项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试添加 https://github.com/hygieiasoft/cordova-plugin-uid 通过在config.xml设计师的Visual Studio,它承认有一个插件,但与所有属性空白字段(版本,插件ID等等)结束,即使你几分钟等待(大多数人在几秒钟之内的房地产)。如果再尝试添加它,它只是VS崩溃并重新启动。我曾尝试与不支持的所有平台,成功的插件,但不是这一个。

When trying to add https://github.com/hygieiasoft/cordova-plugin-uid to visual studio via the config.xml designer, it "recognises" there is a plugin, but ends with blank fields for all the properties (version, plugin id, etc.), even if you wait for minutes (most others find all properties in seconds). If you then try and add it, it simply crashes VS and restarts. I have tried with plugins that do not support ALL platforms, with success, but not this one.

有没有人有任何运气加上这VS或有什么想法。由于该项目是跨平台的,我想preFER使用推荐的方式,尽管这只是机器人,但我开放的建议。最后,我只想找一个IMEI。

Has anyone had any luck adding this to VS or have any ideas. Since the project is cross platform, I would prefer to use the recommended way, even though this is android only, but am open to suggestions. Ultimately, I am only looking for IMEI.

使用的Telerik应用程序Studio的用户建议,因为这个过程是简单的插件复制到www文件夹,但除了成本,我想,如上所述,preFER保持几分推荐方法的范围内这将继续努力升级到VS 2015年及以后的时候。

A user suggested using Telerik App Studio, as the process is simpler to copy the plugin into the www folder, but apart from the cost, I would, as noted, prefer keep within the confines of a somewhat recommended way that will continue working when upgrading to VS 2015 and beyond.

推荐答案

执行以下步骤 -

1)下载的插件,您的Windows桌面上。解压下载的文件。

1) Download the plugin on your windows desktop. Unzip the downloaded file.

2)添加facebookconnect.xml文件到plugin.xml中为present的文件夹。添加您的应用程序ID和应用程序名称。将下面的标签内的资源标记 -

2) Add facebookconnect.xml file to the folder where plugin.xml is present. Add your app id and application name. Place the below tags inside resources tag -

<string name="fb_app_id"></string>
<string name="fb_app_name"></string>

3)修改plugin.xml文件,facebookconnect.xml文件。它应该如下 -    

3) Modify the plugin.xml file to include facebookconnect.xml file. It should look like below -

    <config-file target="res/xml/config.xml" parent="/*">
        <feature name="FacebookConnectPlugin">
            <param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin" />
        </feature>
        <access origin="https://m.facebook.com" />
        <access origin="https://graph.facebook.com" />
        <access origin="https://api.facebook.com" />
        <access origin="https://*.fbcdn.net" />
        <access origin="https://*.akamaihd.net" />
    </config-file>

    <source-file src="platforms/android/res/values/facebookconnect.xml" target-dir="res/values" />

    <config-file target="AndroidManifest.xml" parent="application">
        <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/fb_app_id"/>
        <activity android:label="@string/fb_app_name" android:name="com.facebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
    </config-file>

    <framework src="platforms/android/FacebookLib" custom="true" />

    <!-- cordova plugin src files -->
    <source-file src="platforms/android/src/org/apache/cordova/facebook/ConnectPlugin.java" target-dir="src/org/apache/cordova/facebook" />

</platform>

4)现在进入Visual Studio并从那里插件文件present的目录中添加插件。它需要一定的时间来进行添加。

4) Now Go into Visual Studio and add the plugin from the directory where plugin files are present. It will take some time to be added.

希望这可以帮助您解决问题。

Hope this helps you fix the problem.

这篇关于不能科尔多瓦 - 插件-UID添加到Visual Studio 2013项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆