小编sal*_*ido的帖子

在Android上嵌入Cordova WebView

我正在使用带有Android SDK 15的phonegap"2.0",我只想在Android prject上嵌入Cordova WebView,我一步一步地使用指南链接,也是github中的另一个例子链接 我的应用程序崩溃并在我运行时自动停止.Logcat错误:

android.view.InflateException: Binary XML file line #6: Error inflating class org.apache.cordova.CordovaWebView
Run Code Online (Sandbox Code Playgroud)

我的xml文件"main.xml":

<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent">
    <org.apache.cordova.CordovaWebView android:id="@+id/phoneGapView" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout >
Run Code Online (Sandbox Code Playgroud)

Thx提前.. :)

cordova

4
推荐指数
1
解决办法
5433
查看次数

标签 统计

cordova ×1