Dummy cordova插件,用于将自定义指令添加到AndroidManifiest.xml中

时间:2015-12-17 19:18:35

标签: android cordova cordova-plugins intel-xdk

我试图制作一个插件,将某些参数添加到 AndroidManifiest.xml 在官方文档中是这样的,但当我尝试将插件添加到INTEL XDK时,他们告诉我这个:

错误:

  

插件操作错误

     

无法读取属性' getVisibleName'未定义的

INTEL XDK Documentation about modify androidmanifiest.xml

如果你帮助我,我很感激,问候

<?xml version="1.0" encoding="UTF-8"?>  
    <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"     
            xmlns:android="http://schemas.android.com/apk/res/android"
             id="own.plugin.onlytablet" version="1.0.0"> 

        <name>SAIT CUSTOM PLUGIN Only Tablets</name> 
        <description>Add config to AndroidManifest.xml</description> 
        <author>Own SOFTWARE</author>
        <license>MIT</license> 

        <engines> 
            <engine name="cordova" version=">=3.0.0" /> 
        </engines>  

        <!-- android --> 
        <platform name="android">

            <config-file target="AndroidManifest.xml" parent="/manifest"> 
                <supports-screens android:smallScreens="false"
                                  android:normalScreens="false"
                                  android:largeScreens="false"
                                  android:xlargeScreens="true"
                                  android:anyDensity="true"
                                  android:requiresSmallestWidthDp="600"
                                  android:compatibleWidthLimitDp="integer"
                                  android:largestWidthLimitDp="integer"/>
            </config-file> 
        </platform>  
    </plugin>

0 个答案:

没有答案
相关问题