我正在尝试构建一个简单的人行横道HelloWorld应用程序但遇到问题(应用程序无法在模拟器中启动)。这是我关注的教程。 https://crosswalk-project.org/documentation/cordova/develop_an_application.html
我做的唯一不同的是下载手臂版本(crosswalk-cordova-11.40.277.7-arm),因为这是我想要的目标。
尝试运行应用时“adb logcat> adb.log”的输出。 http://pastebin.com/xWJreNzC
包含“HelloWorld”的日志行。
$ grep -n HelloWorld adb.log
1515:W/ActivityManager( 389): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld-debug-unaligned.apk
1576:W/ActivityManager( 389): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld-debug-unaligned.apk
1853:I/ActivityManager( 389): START u0 {act=android.intent.action.MAIN flg=0x10000000 cmp=org.crosswalkproject.sample/.HelloWorld} from pid 1018
1866:I/ActivityManager( 389): Start proc org.crosswalkproject.sample for activity org.crosswalkproject.sample/.HelloWorld: pid=1029 uid=10052 gids={50052, 3003}
1903:I/ActivityManager( 389): Displayed org.crosswalkproject.sample/.HelloWorld: +3s818ms
2075:W/InputDispatcher( 389): channel 'b2fcec00 org.crosswalkproject.sample/org.crosswalkproject.sample.HelloWorld (server)' ~ Consumer closed input channel or an error occurred. events=0x9
2076:E/InputDispatcher( 389): channel 'b2fcec00 org.crosswalkproject.sample/org.crosswalkproject.sample.HelloWorld (server)' ~ Channel is unrecoverably broken and will be disposed!
2080:I/WindowState( 389): WIN DEATH: Window{b2fcec00 u0 org.crosswalkproject.sample/org.crosswalkproject.sample.HelloWorld}
2081:W/ActivityManager( 389): Force removing ActivityRecord{b2f6d828 u0 org.crosswalkproject.sample/.HelloWorld t2}: app died, no saved state
2082:W/InputDispatcher( 389): Attempted to unregister already unregistered input channel 'b2fcec00 org.crosswalkproject.sample/org.crosswalkproject.sample.HelloWorld (server)'
正在使用的avd
$ android list avd
Available Android Virtual Devices:
Name: android-19
Device: 3.2in HVGA slider (ADP1) (Generic)
Path: /home/fabe/.android/avd/android-19.avd
Target: Android 4.4.2 (API level 19)
Tag/ABI: default/armeabi-v7a
Skin: HVGA
答案 0 :(得分:17)
通过为avd。启用“使用主机GPU”来解决问题。
以下日志条目暗示了他的问题。
1908:F / chromium(1029):[致命:gl_surface_android.cc(58)]检查失败:kGLImplementationNone!= GetGLImplementation()(0 vs. 0)