离子起动机不能在人行横道

离子起动机不能在人行横道

本文介绍了离子起动机不能在人行横道,精简版运行:无法启动活动ComponentInfo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始有人行横道,精简版离子的应用程序,但不能同时真正的设备及放大器上运行; genymotion。

 离子开始对myApp标签
NPM安装
亭子安装
离子发球#<  - 我测试的浏览器和放大器;它的工作
离子的浏览器插件人行横道,精简版
离子构建Android#<  - 成功编译
离子运行Android#<  - 运行在genymotion,它的崩溃
 

当我这样做亚行logcat ,它显示误差了java.lang.RuntimeException:无法启动活动ComponentInfo {com.ionicframework.myapp}

我构建具有:

  • 节点v0.10.36
  • 离子1.4.5
  • 在科尔多瓦4.3.0

插件:

  • com.ionic.keyboard 1.0.4
  • 在科尔多瓦 - 插件 - 人行横道-的WebView 1.0.1-dev的
  • 在科尔多瓦 - 插件白名单1.0.0
  • org.apache.cordova.console 0.2.13
  • org.apache.cordova.device 0.3.0
  • org.apache.cordova.splashcsreen 1.0.0

你知道吗?

更新:

下面是我的的Andr​​oidManifest.xml

 < XML版本=1.0编码=UTF-8&GT?;
<舱单安卓hardwareAccelerated =真的Andr​​oid版本:版本code =1机器人:VERSIONNAME =0.0.1包=com.ionicframework.vellfire661565的xmlns:机器人=HTTP://模式。 android.com/apk/res/android">
    <支持屏安卓anyDensity =真正的机器人:largeScreens =真正的机器人:normalScreens =真正的机器人:调整大小=真正的机器人:smallScreens =真正的机器人:xlargeScreens =真/>
    <使用-权限的Andr​​oid:名称=android.permission.INTERNET对/>
    <使用-权限的Andr​​oid:名称=android.permission.ACCESS_NETWORK_STATE/>
    <使用-权限的Andr​​oid:名称=android.permission.ACCESS_WIFI_STATE/>
    <应用的Andr​​oid版本:hardwareAccelerated =真正的机器人:图标=@可绘制/图标机器人:标签=@字符串/ APP_NAME机器人:supportsRtl =真正的>
        <活动机器人:configChanges =定位| keyboardHidden |键盘|屏幕尺寸|语言环境机器人:标签=@字符串/ ACTIVITY_NAME机器人:launchMode =singleTop机器人:NAME =MainActivity安卓主题=@机器人:款式/ Theme.Black.NoTitleBar机器人:windowSoftInputMode =adjustResize>
            <意图过滤器的Andr​​oid版本:标签=@字符串/ launcher_name>
                <作用机器人:名称=android.intent.action.MAIN/>
                <类机器人:名称=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
        < /活性GT;
        <活动机器人:出口=真正的机器人:NAME =com.plugin.gcm.PushHandlerActivity/>
        <接收器的Andr​​oid版本:NAME =com.plugin.gcm.CordovaGCMBroadcastReceiver安卓权限=com.google.android.c2dm.permission.SEND>
            <意向滤光器>
                <作用机器人:名称=com.google.android.c2dm.intent.RECEIVE/>
                <作用机器人:名称=com.google.android.c2dm.intent.REGISTRATION/>
                <类机器人:名称=com.ionicframework.vellfire661565/>
            &所述; /意图滤光器>
        < /接收器>
        <服务机器人:名称=com.plugin.gcm.GCMIntentService/>
    < /用途>
    <使用-SDK安卓的minSdkVersion =14机器人:targetSdkVersion =21/>
    <使用-权限的Andr​​oid:名称=android.permission.GET_ACCOUNTS/>
    <使用-权限的Andr​​oid:名称=android.permission.WAKE_LOCK/>
    <使用-权限的Andr​​oid:名称=android.permission.VIBRATE/>
    <使用-权限的Andr​​oid:名称=com.google.android.c2dm.permission.RECEIVE/>
    <允许机器人:名称=com.ionicframework.vellfire661565.permission.C2D_MESSAGE安卓的ProtectionLevel =签名/>
    <使用-权限的Andr​​oid:名称=com.ionicframework.vellfire661565.permission.C2D_MESSAGE/>
    <使用-权限的Andr​​oid:名称=android.permission.WRITE_EXTERNAL_STORAG​​E/>
< /舱单>
 

这是我的的config.xml

 < XML版本=1.0编码=UTF-8&GT?;
<微件ID =com.ionicframework.vellfire661565版本=0.0.1的xmlns =htt​​p://www.w3.org/ns/widgets的xmlns:CDV =htt​​p://cordova.apache.org /ns/1.0">
    <名称> SS店< /名称>
    <描述>
        SS店。
    < /描述>
    <作者电子邮件=的href =>
    Silviana Suteja
    < /笔者>
    <内容SRC =的index.html/>
    < preference名=webviewbounce值=FALSE/>
    < preference名=UIWebViewBounce值=FALSE/>
    < preference名=DisallowOverscroll值=真/>
    < preference名=BackupWebStorage值=无/>
    < preference名=闪屏的价值=屏幕/>
    < preference名=SplashScreenDelay值=3000/>
    < preference名=AutoHideSplashScreen值=FALSE/>
    < preference名=ShowSplashScreenSpinner值=FALSE/>
    <功能名称=状态栏>
        < PARAM NAME =IOS-包的onload =真值=CDVStatusBar/>
    < /功能>
    <功能名称=文件传输>
        < PARAM NAME =ID值=org.apache.cordova.file转移/>
    < /功能>
    <功能名称=吐司>
        < PARAM NAME =ID值=nl.x-services.plugins.toast/>
    < /功能>
    <功能名称=PushPlugin>
        < PARAM NAME =ID值=com.phonegap.plugins.PushPlugin/>
        < PARAM NAME =URL值=htt​​ps://github.com/phonegap-build/PushPlugin.git/>
    < /功能>
    <功能名称=AppVersion>
        < PARAM NAME =ID值=uk.co.whiteoctober.cordova.appversion/>
        < PARAM NAME =URL值=htt​​ps://github.com/whiteoctober/cordova-plugin-app-version.git/>
    < /功能>
    <功能名称=网络信息>
        < PARAM NAME =ID值=org.apache.cordova.network信息/>
    < /功能>
    <平台名称=机器人>
        <图标密度=LDPISRC =资源/安卓/图标/绘制-LDPI-icon.png在/>
        <图标密度=MDPISRC =resourc ES /安卓/图标/绘制-MDPI-icon.png在/>
        <图标密度=华电国际SRC =资源/安卓/图标/绘制-HDPI-icon.png在/>
        <图标密度=xhdpiSRC =资源/安卓/图标/绘制-xhdpi-icon.png在/>
        <图标密度=xxhdpiSRC =资源/安卓/图标/绘制-xxhdpi-icon.png在/>
        <图标密度=xxxhdpiSRC =资源/安卓/图标/绘制-xxxhdpi-icon.png在/>
        <闪密度=土地LDPISRC =资源/安卓/飞溅/绘制-土地LDPI-screen.png/>
        <闪密度=土地MDPISRC =资源/安卓/飞溅/绘制-土地MDPI-screen.png/>
        <闪密度=土地华电国际SRC =资源/安卓/飞溅/绘制-土地HDPI-screen.png/>
        <闪密度=土地xhdpiSRC =资源/安卓/飞溅/绘制-土地xhdpi-screen.png/>
        <闪密度=土地xxhdpiSRC =资源/安卓/飞溅/绘制-土地xxhdpi-screen.png/>
        <闪密度=土地xxxhdpiSRC =资源/安卓/飞溅/绘制-土地xxxhdpi-screen.png/>
        <闪密度=港LDPISRC =资源/安卓/飞溅/绘制端口-LDPI-screen.png/>
        <闪密度=港MDPISRC =资源/安卓/飞溅/绘制端口,MDPI-screen.png/>
        <闪密度=港华电国际SRC =资源/安卓/飞溅/绘制端口-HDPI-screen.png/>
        <闪密度=港xhdpiSRC =资源/安卓/飞溅/绘制端口-xhdpi-screen.png/>
        <闪密度=港xxhdpiSRC =资源/安卓/飞溅/绘制端口-xxhdpi-screen.png/>
        <闪密度=港xxxhdpiSRC =资源/安卓/飞溅/绘制端口-xxxhdpi-screen.png/>
    < /平台>
    <图标SRC =资源/安卓/图标/绘制-xhdpi-icon.png在/>
    <允许导航HREF =*/>
    &所述;允许意图的href =*/>
    <获得原产地=*/>
    <功能名称=媒体故知>
        < PARAM NAME =ID值=com.metacube.metacampus.mediarefresher/>
        < PARAM NAME =URL值=htt​​ps://github.com/saurabhgupta050890/Media-Refresher-Cordova.git/>
    < /功能>
< /部件>
 

更新2:

亚行logcat 返回:

  W / InputMethodManagerService(313):窗口已经集中,忽略聚焦增益
的:com.android.internal.view.IInputMethodClient$Stub$Proxy@53864848属性= N
ULL
W / genymotion_audio(125):out_write()限制睡眠时间81156至39909
W / genymotion_audio(125):out_write()限制睡眠时间62426至39909
I / ActivityManager(313):开始{行为= android.intent.action.MAIN猫= [android.int
ent.category.LAUNCHER] FLG = 0x10200000 CMP = com.ionicframework.vellfire661565 / .MAI
nActivity U =从PID 484 0}
E / SocketStream(122)的readFully在等着764896字节,拿到49152
E / SocketStream(122)的readFully在等着715744字节,拿到49152
E / SocketStream(122)的readFully在等着666592字节,拿到49152
E / SocketStream(122)的readFully在等着617440字节,拿到16384
E / SocketStream(122)的readFully在等着601056字节,拿到87280
E / SocketStream(122)的readFully在等着513776字节,拿到49152
E / SocketStream(122)的readFully在等着464624字节,拿到49152
E / SocketStream(122)的readFully在等着415472字节,拿到49152
E / SocketStream(122)的readFully在等着366320字节,拿到49152
E / SocketStream(122)的readFully在等着317168字节,得到了294912
E / SocketStream(122)的readFully在等待22256个字节,拿到16384
D / dalvikvm(313):GC_FOR_ALLOC释放746K,11%免费15401K / 17159K,暂停10毫秒,
 共有10毫秒
D / dalvikvm(1054):延迟启用CheckJNI
I / ActivityManager(313):启动PROC com.ionicframework.vellfire661565的ACTIV
性com.ionicframework.vellfire661565 / .MainActivity:PID = 1054的uid = 10048导报= {30
03,1015,1028}
I / qtaguid(313):失败write_ctrl(第1条10048)RES = -1错误号= 1
W / NetworkManagementSocketTagger(313):setKernelCountSet(10048,1)失败,
错误号-1
D / OpenGLRenderer(484):TextureCache ::刷新:目标大小:651434
D / OpenGLRenderer(484):TextureCache ::回调:名字,去掉大小,MSIZE = 592
,59536,1026188
D / OpenGLRenderer(484):TextureCache ::回调:名字,去掉大小,MSIZE = 593
,204880,821308
D / OpenGLRenderer(484):TextureCache ::回调:名字,去掉大小,MSIZE = 594
,204880,616428
I / CordovaLog(1054):更改日志级别为DEBUG(3)
D / AndroidRuntime(1054):关闭虚拟机
W / dalvikvm(1054):主题ID = 1:螺纹退出与未捕获的异常(组=是0xA
624f288)
E / AndroidRuntime(1054):致命异常:主要
E / AndroidRuntime(1054):java.lang.RuntimeException的:无法启动的活动合作
mponentInfo {com.ionicframework.vellfire661565 / com.ionicframework.vellfire661565。
MainActivity}:java.lang.RuntimeException的:无法创建web视图。
E / AndroidRuntime(1054):在android.app.ActivityThread.performLaunchActiv
性(ActivityThread.java:2059)
E / AndroidRuntime(1054):在android.app.ActivityThread.handleLaunchActivi
TY(ActivityThread.java:2084)
E / AndroidRuntime(1054):在android.app.ActivityThread.access $ 600(Activit
yThread.java:130)
E / AndroidRuntime(1054):在android.app.ActivityThread $ H.handleMessage(徒
tivityThread.java:1195)
E / AndroidRuntime(1054):在android.os.Handler.dispatchMessage(Handler.ja
VA:99)
E / AndroidRuntime(1054):在android.os.Looper.loop(Looper.java:137)
E / AndroidRuntime(1054):在android.app.ActivityThread.main(ActivityThrea
d.java:4745)
E / AndroidRuntime(1054):在java.lang.reflect.Method.invokeNative(母语
方法)
E / AndroidRuntime(1054):在java.lang.reflect.Method.invoke(Method.java:5
11)
E / AndroidRuntime(1054):在com.android.internal.os.ZygoteInit $ MethodAndA
rgsCaller.run(ZygoteInit.java:786)
E / AndroidRuntime(1054):在com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:553)
E / AndroidRuntime(1054):在dalvik.system.NativeStart.main(本机方法)

E / AndroidRuntime(1054):java.lang.RuntimeException的:产生的原因无法创建
 web视图。
E / AndroidRuntime(1054):在org.apache.cordova.CordovaWebViewImpl.createE
ngine(CordovaWebViewImpl.java:83)
E / AndroidRuntime(1054):在org.apache.cordova.CordovaActivity.makeWebVie
wEngine(CordovaActivity.java:192)
E / AndroidRuntime(1054):在org.apache.cordova.CordovaActivity.makeWebVie
W(CordovaActivity.java:188)
E / AndroidRuntime(1054):在org.apache.cordova.CordovaActivity.init(Cordo
vaActivity.java:136)
E / AndroidRuntime(1054):在org.apache.cordova.CordovaActivity.loadUrl(联合
rdovaActivity.java:210)
E / AndroidRuntime(1054):在com.ionicframework.vellfire661565.MainActivit
y.onCreate(MainActivity.java:32)
E / AndroidRuntime(1054):在android.app.Activity.performCreate(Activity.j
AVA:5008)
E / AndroidRuntime(1054):在android.app.Instrumentation.callActivityOnCre
吃了(Instrumentation.java:1079)
E / AndroidRuntime(1054):在android.app.ActivityThread.performLaunchActiv
性(ActivityThread.java:2023)
E / AndroidRuntime(1054):11 ...更多
E / AndroidRuntime(1054):java.lang.reflect.InvocationTargetException:产生的原因
E / AndroidRuntime(1054):在java.lang.reflect.Constructor.constructNative
(本机方法)
E / AndroidRuntime(1054):在java.lang.reflect.Constructor.newInstance(精读
structor.java:417)
E / AndroidRuntime(1054):在org.apache.cordova.CordovaWebViewImpl.createE
ngine(CordovaWebViewImpl.java:81)
E / AndroidRuntime(1054):19 ...更多
E / AndroidRuntime(1054):显示java.lang.NullPointerException:产生的原因
E / AndroidRuntime(1054):在org.xwalk.core.XWalk preferences.setValue(XWal
ķpreferences.java:106)
E / AndroidRuntime(1054):在org.crosswalk.engine.XWalkCordovaView.setGlob
人preFS(XWalkCordovaView.java:41)
E / AndroidRuntime(1054):在org.crosswalk.engine.XWalkCordovaView< INIT>(。
XWalkCordovaView.java:50)
E / AndroidRuntime(1054):在org.crosswalk.engine.XWalkWebViewEngine<初始化。
>(XWalkWebViewEngine.java:56)
E / AndroidRuntime(1054):22 ...更多
W / ActivityManager(313):强制完成活动com.ionicframework.vellfire
661565 / .MainActivity
E / SocketStream(122)的readFully在等着764896字节,拿到49152
E / SocketStream(122)的readFully在等着715744字节,拿到49152
E / SocketStream(122)的readFully在等着666592字节,拿到49152
E / SocketStream(122)的readFully在等着617440字节,拿到49152
E / SocketStream(122)的readFully在等着568288字节,拿到49152
E / SocketStream(122)的readFully在等着519136字节,拿到49152
E / SocketStream(122)的readFully在等着469984字节,得到了245760
E / SocketStream(122)的readFully在等着224224字节,拿到16384
E / SocketStream(122)的readFully在等着207840字节,拿到13804
E / SocketStream(122)的readFully在等着194036字节,拿到49152
E / SocketStream(122)的readFully在等着144884字节,拿到49152
E / SocketStream(122)的readFully在等待95732个字节,拿到49152
E / SocketStream(122)的readFully在等待46580个字节,拿到32768
D / dalvikvm(313):GC_FOR_ALLOC释放540K,11%免费15377K / 17159K,暂停12毫秒,
 共有12毫秒
E / Genymotion(313):无法打开/ SYS /班/ POWER_SUPPLY / genymotion_fake_pat
H / present
W / ActivityManager(313):活动暂停超时ActivityRecord {5385639c COM
.ionicframework.vellfire661565 / .MainActivity}
W / EGL_genymotion(484):eglSurfaceAttrib未实现
I / qtaguid(313):失败write_ctrl(S 0 10048)RES = -1错误号= 1
W / NetworkManagementSocketTagger(313):setKernelCountSet(10048,0)失败,
错误号-1
E / Genymotion(313):无法打开/ SYS /班/ POWER_SUPPLY / genymotion_fake_pat
H / present
E / Genymotion(313):无法打开/ SYS /班/ POWER_SUPPLY / genymotion_fake_pat
H / present
W / ActivityManager(313):活动破坏超时ActivityRecord {5385639cÇ
om.ionicframework.vellfire661565 / .MainActivity}
 

解决方案

我想你的步骤和它的作品很好。

我有: - 科尔多瓦5.3.1 - 离子型版本1.1.0 - 离子CLI版本1.6.4

您应该尝试更新,看看是否可行。

I am starting ionic app with crosswalk-lite, but it can't run on both real device & genymotion.

ionic start myApp tabs
npm install
bower install
ionic serve # <-- I test on browser & it's work
ionic browser add crosswalk-lite
ionic build android # <-- success to compile
ionic run android # <-- run on genymotion, and it's crash

When I do adb logcat, it show error java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ionicframework.myapp}

I build with:

  • node v0.10.36
  • ionic 1.4.5
  • cordova 4.3.0

Plugin:

  • com.ionic.keyboard 1.0.4
  • cordova-plugin-crosswalk-webview 1.0.1-dev
  • cordova-plugin-whitelist 1.0.0
  • org.apache.cordova.console 0.2.13
  • org.apache.cordova.device 0.3.0
  • org.apache.cordova.splashcsreen 1.0.0

Any idea?

UPDATE:

Here is my AndroidManifest.xml

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.ionicframework.vellfire661565" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:exported="true" android:name="com.plugin.gcm.PushHandlerActivity" />
        <receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="com.ionicframework.vellfire661565" />
            </intent-filter>
        </receiver>
        <service android:name="com.plugin.gcm.GCMIntentService" />
    </application>
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <permission android:name="com.ionicframework.vellfire661565.permission.C2D_MESSAGE" android:protectionLevel="signature" />
    <uses-permission android:name="com.ionicframework.vellfire661565.permission.C2D_MESSAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

And this is my config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ionicframework.vellfire661565" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>SS Shop</name>
    <description>
        SS Shop.
    </description>
    <author email="" href="">
    Silviana Suteja
    </author>
    <content src="index.html" />
    <preference name="webviewbounce" value="false" />
    <preference name="UIWebViewBounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <feature name="StatusBar">
        <param name="ios-package" onload="true" value="CDVStatusBar" />
    </feature>
    <feature name="File Transfer">
        <param name="id" value="org.apache.cordova.file-transfer" />
    </feature>
    <feature name="Toast">
        <param name="id" value="nl.x-services.plugins.toast" />
    </feature>
    <feature name="PushPlugin">
        <param name="id" value="com.phonegap.plugins.PushPlugin" />
        <param name="url" value="https://github.com/phonegap-build/PushPlugin.git" />
    </feature>
    <feature name="AppVersion">
        <param name="id" value="uk.co.whiteoctober.cordova.appversion" />
        <param name="url" value="https://github.com/whiteoctober/cordova-plugin-app-version.git" />
    </feature>
    <feature name="Network Information">
        <param name="id" value="org.apache.cordova.network-information" />
    </feature>
    <platform name="android">
        <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
        <icon density="mdpi" src="resourc  es/android/icon/drawable-mdpi-icon.png" />
        <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
        <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
        <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
        <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
        <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
        <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
        <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
        <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
        <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
        <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
        <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
        <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
    </platform>
    <icon src="resources/android/icon/drawable-xhdpi-icon.png" />
    <allow-navigation href="*" />
    <allow-intent href="*" />
    <access origin="*" />
    <feature name="Media Refresher">
        <param name="id" value="com.metacube.metacampus.mediarefresher" />
        <param name="url" value="https://github.com/saurabhgupta050890/Media-Refresher-Cordova.git" />
    </feature>
</widget>

UPDATE 2:

adb logcat return:

W/InputMethodManagerService(  313): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy@53864848 attribute=n
ull
W/genymotion_audio(  125): out_write() limiting sleep time 81156 to 39909
W/genymotion_audio(  125): out_write() limiting sleep time 62426 to 39909
I/ActivityManager(  313): START {act=android.intent.action.MAIN cat=[android.int
ent.category.LAUNCHER] flg=0x10200000 cmp=com.ionicframework.vellfire661565/.Mai
nActivity u=0} from pid 484
E/SocketStream(  122): readFully was waiting for 764896 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 715744 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 666592 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 617440 bytes, got 16384
E/SocketStream(  122): readFully was waiting for 601056 bytes, got 87280
E/SocketStream(  122): readFully was waiting for 513776 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 464624 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 415472 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 366320 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 317168 bytes, got 294912
E/SocketStream(  122): readFully was waiting for 22256 bytes, got 16384
D/dalvikvm(  313): GC_FOR_ALLOC freed 746K, 11% free 15401K/17159K, paused 10ms,
 total 10ms
D/dalvikvm( 1054): Late-enabling CheckJNI
I/ActivityManager(  313): Start proc com.ionicframework.vellfire661565 for activ
ity com.ionicframework.vellfire661565/.MainActivity: pid=1054 uid=10048 gids={30
03, 1015, 1028}
I/qtaguid (  313): Failed write_ctrl(s 1 10048) res=-1 errno=1
W/NetworkManagementSocketTagger(  313): setKernelCountSet(10048, 1) failed with
errno -1
D/OpenGLRenderer(  484): TextureCache::flush: target size: 651434
D/OpenGLRenderer(  484): TextureCache::callback: name, removed size, mSize = 592
, 59536, 1026188
D/OpenGLRenderer(  484): TextureCache::callback: name, removed size, mSize = 593
, 204880, 821308
D/OpenGLRenderer(  484): TextureCache::callback: name, removed size, mSize = 594
, 204880, 616428
I/CordovaLog( 1054): Changing log level to DEBUG(3)
D/AndroidRuntime( 1054): Shutting down VM
W/dalvikvm( 1054): threadid=1: thread exiting with uncaught exception (group=0xa
624f288)
E/AndroidRuntime( 1054): FATAL EXCEPTION: main
E/AndroidRuntime( 1054): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.ionicframework.vellfire661565/com.ionicframework.vellfire661565.
MainActivity}: java.lang.RuntimeException: Failed to create webview.
E/AndroidRuntime( 1054):        at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2059)
E/AndroidRuntime( 1054):        at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2084)
E/AndroidRuntime( 1054):        at android.app.ActivityThread.access$600(Activit
yThread.java:130)
E/AndroidRuntime( 1054):        at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1195)
E/AndroidRuntime( 1054):        at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 1054):        at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1054):        at android.app.ActivityThread.main(ActivityThrea
d.java:4745)
E/AndroidRuntime( 1054):        at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 1054):        at java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime( 1054):        at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 1054):        at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:553)
E/AndroidRuntime( 1054):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 1054): Caused by: java.lang.RuntimeException: Failed to create
 webview.
E/AndroidRuntime( 1054):        at org.apache.cordova.CordovaWebViewImpl.createE
ngine(CordovaWebViewImpl.java:83)
E/AndroidRuntime( 1054):        at org.apache.cordova.CordovaActivity.makeWebVie
wEngine(CordovaActivity.java:192)
E/AndroidRuntime( 1054):        at org.apache.cordova.CordovaActivity.makeWebVie
w(CordovaActivity.java:188)
E/AndroidRuntime( 1054):        at org.apache.cordova.CordovaActivity.init(Cordo
vaActivity.java:136)
E/AndroidRuntime( 1054):        at org.apache.cordova.CordovaActivity.loadUrl(Co
rdovaActivity.java:210)
E/AndroidRuntime( 1054):        at com.ionicframework.vellfire661565.MainActivit
y.onCreate(MainActivity.java:32)
E/AndroidRuntime( 1054):        at android.app.Activity.performCreate(Activity.j
ava:5008)
E/AndroidRuntime( 1054):        at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1079)
E/AndroidRuntime( 1054):        at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2023)
E/AndroidRuntime( 1054):        ... 11 more
E/AndroidRuntime( 1054): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1054):        at java.lang.reflect.Constructor.constructNative
(Native Method)
E/AndroidRuntime( 1054):        at java.lang.reflect.Constructor.newInstance(Con
structor.java:417)
E/AndroidRuntime( 1054):        at org.apache.cordova.CordovaWebViewImpl.createE
ngine(CordovaWebViewImpl.java:81)
E/AndroidRuntime( 1054):        ... 19 more
E/AndroidRuntime( 1054): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 1054):        at org.xwalk.core.XWalkPreferences.setValue(XWal
kPreferences.java:106)
E/AndroidRuntime( 1054):        at org.crosswalk.engine.XWalkCordovaView.setGlob
alPrefs(XWalkCordovaView.java:41)
E/AndroidRuntime( 1054):        at org.crosswalk.engine.XWalkCordovaView.<init>(
XWalkCordovaView.java:50)
E/AndroidRuntime( 1054):        at org.crosswalk.engine.XWalkWebViewEngine.<init
>(XWalkWebViewEngine.java:56)
E/AndroidRuntime( 1054):        ... 22 more
W/ActivityManager(  313):   Force finishing activity com.ionicframework.vellfire
661565/.MainActivity
E/SocketStream(  122): readFully was waiting for 764896 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 715744 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 666592 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 617440 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 568288 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 519136 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 469984 bytes, got 245760
E/SocketStream(  122): readFully was waiting for 224224 bytes, got 16384
E/SocketStream(  122): readFully was waiting for 207840 bytes, got 13804
E/SocketStream(  122): readFully was waiting for 194036 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 144884 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 95732 bytes, got 49152
E/SocketStream(  122): readFully was waiting for 46580 bytes, got 32768
D/dalvikvm(  313): GC_FOR_ALLOC freed 540K, 11% free 15377K/17159K, paused 12ms,
 total 12ms
E/Genymotion(  313): Could not open '/sys/class/power_supply/genymotion_fake_pat
h/present'
W/ActivityManager(  313): Activity pause timeout for ActivityRecord{5385639c com
.ionicframework.vellfire661565/.MainActivity}
W/EGL_genymotion(  484): eglSurfaceAttrib not implemented
I/qtaguid (  313): Failed write_ctrl(s 0 10048) res=-1 errno=1
W/NetworkManagementSocketTagger(  313): setKernelCountSet(10048, 0) failed with
errno -1
E/Genymotion(  313): Could not open '/sys/class/power_supply/genymotion_fake_pat
h/present'
E/Genymotion(  313): Could not open '/sys/class/power_supply/genymotion_fake_pat
h/present'
W/ActivityManager(  313): Activity destroy timeout for ActivityRecord{5385639c c
om.ionicframework.vellfire661565/.MainActivity}
解决方案

I tried your steps and it works good.

I have :- cordova 5.3.1- ionic version 1.1.0- ionic CLI version 1.6.4

You should try to update and see if it works.

这篇关于离子起动机不能在人行横道,精简版运行:无法启动活动ComponentInfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 23:47