Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cordova &引用;硫化的;聚合物纸元件don';我不能在科尔多瓦工作_Cordova_Polymer_Paper Elements - Fatal编程技术网

Cordova &引用;硫化的;聚合物纸元件don';我不能在科尔多瓦工作

Cordova &引用;硫化的;聚合物纸元件don';我不能在科尔多瓦工作,cordova,polymer,paper-elements,Cordova,Polymer,Paper Elements,我正在用Cordova开发一个HTML应用程序。我正在使用人行横道web视图。我曾尝试使用聚合物(v0.5)来集成组件。同样,我读到,使用加载html组件是不可能的;解决方案是使用构建工具,在单个页面中连接组件 我做了所有这些,但应用程序仍然无法识别纸张元素。我写了一个我的场景的小例子,如下所示: my cordova项目中www/目录的结构为: www/ bower_components/ css/ html/ index.html

我正在用Cordova开发一个HTML应用程序。我正在使用人行横道web视图。我曾尝试使用聚合物(v0.5)来集成组件。同样,我读到,使用
加载html组件是不可能的;解决方案是使用构建工具,在单个页面中连接组件

我做了所有这些,但应用程序仍然无法识别纸张元素。我写了一个我的场景的小例子,如下所示:

my cordova项目中
www/
目录的结构为:

    www/
      bower_components/
      css/
      html/
        index.html
        vulcanized.html
      img/
      js/
      bower.json
      index.html
www/index.html
www/html/index.html
存档的硫化构建生成的。最后一个是这样的:


测试项目


登录
这在本地服务器上运行良好,但在Web视图中根本不起作用

有人帮我吗?难道不能将纸元素与Cordova一起使用吗

提前谢谢!

Pedro.

头部是否包含webcomponentsjs/webcomponents.min.js?

头部是否包含webcomponentsjs/webcomponents.min.js

    <!doctype html>
     <html>
      <head>
       <title>Test Project</title>
       <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
       <meta name="mobile-web-app-capable" content="yes">
       <meta name="apple-mobile-web-app-capable" content="yes">

       <link rel="import" href="../bower_components/paper-elements/paper-elements.html">


      </head>
      <body unresolved>

       <div id="login">
        <form>
         <paper-input label="Name" floatingLabel></paper-input>
         <br>
         <paper-input label="Password" floatingLabel></paper-input>
         <br>
         <paper-button toggle>Sign in</paper-button>
        </form>
       </div>

      </body>
     </html>