I added Crosswalk for the eclipse, as in this tutorial: ClickHere I did everything exactly as in the tutorial, and did not get any errors, but when I launched the application on my phone, I have the following:
02-19 13:37:08.147: E/AndroidRuntime(21108): FATAL EXCEPTION: main 02-19 13:37:08.147: E/AndroidRuntime(21108): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.crosswalktest/com.example.crosswalktest.MainActivity}: android.view.InflateException: Binary XML file line
MainActivity:
public class MainActivity extends Activity { private XWalkView mXWalkView; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mXWalkView = (XWalkView) findViewById(R.id.AM); mXWalkView.load("http://crosswalk-project.org/", null); }
}
activity_main.xml:
<org.xwalk.core.XWalkView android:id="@+id/AM" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> </org.xwalk.core.XWalkView>
I dug google for several hours but could not find a solution.
source share