I am sorry if this is the wrong forum for asking this type of question.
I am trying to creating a menu button to add items to a shopping list but I keep on hitting the following error:
Code:
04-12 12:15:57.585 1995-1995/com.example.ShoppingList D/AndroidRuntime﹕ Shutting down VM
04-12 12:15:57.585 1995-1995/com.example.ShoppingList W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xb0d8cb20)
04-12 12:15:57.585 1995-1995/com.example.ShoppingList E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.ShoppingList, PID: 1995
java.lang.RuntimeException: Unable to start activity ComponentInfo {com.example.ShoppingList/com.example.ShoppingList.MyActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class menu
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class menu
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
at android.app.Activity.setContentView(Activity.java:1929)
at com.example.ShoppingList.MyActivity.onCreate(MyActivity.java:13)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.menu" on path: DexPathList[[zip file "/data/app/com.example.ShoppingList-2.apk"],nativeLibraryDirectories= [/data/app- lib/com.example.ShoppingList-2, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.view.LayoutInflater.createView(LayoutInflater.java:559)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:652)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
at android.app.Activity.setContentView(Activity.java:1929)
at com.example.ShoppingList.MyActivity.onCreate(MyActivity.java:13)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
It has to do the main menu class that somehow the compiler can't find. my main.xml file look like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="android url here">
<item android:id="@+id/action_add"
android:title="Add"
android:showAsAction="always" />
</menu>
my code is like this:
Code:
package com.example.ShoppingList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
public class MyActivity extends Activity {
/**
* Called when the activity is first created.
*/
public static final int ADD_ITEM_REQUEST =1;
private ListView shoppingList;
private ArrayList<ItemParcel> itemParcels;
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
shoppingList= (ListView)findViewById(R.id.listViewAddItem);
itemParcels= new ArrayList<ItemParcel>();
ItemListAdaptor adaptor = new ItemListAdaptor(this, itemParcels);
shoppingList.setAdapter(adaptor);
updateItemCount();
}
@Override
public boolean onCreateOptionsMenu(Menu menu){
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main,menu);
return super.onCreateOptionsMenu(menu);
}
and my project structure is like this:
Please have a look and let me know where the issue might be. I checked the menus link on google's documentation but couldn't find anything suspicious. I asked the same question on stackoverflow but no reply till now .
Related
So I'm at a point where this rom is perfect for my phone. It works just fine and has no crashes at all. The only problem is that when running a low enough DPI for tablet mode to work, SystemUI crashes out of nowhere.
I ran a logcat but I unfortunately can't read this very well, so I'm hoping someone else could chime in.
Code:
loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
running: [email protected]
Resizing status bar plugged=false height=64 old=0
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x40c0f1f8)
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XMI file line #19: Error inflating class com.android.systemui.statusbar.tablet.TabletStatusBarView
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2275)
at android.app.ActivityThread.access$1600(ActivityThread.java:127)
at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4507)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:99)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XMI file line #19: Error inflating class com.android.systemui.statusbar.tablet.TabletStatusBarView
at android.view.LayoutInflater.createView(LayoutInflater.java:606) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.view.View.inflate(View.java:13742)
at com.android.systemui.statusbar.tablet.TabletStatusBar.makeStatusBarView(TabletStatusBar.java:773)
at com.android.systemui.statusbar.StatusBar.start(StatusBar.java:92) at com.android.systemui.statusbar.tablet.TabletStatusBar.start(TabletStatusBar.java:658)
at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:93)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2265)
... 10 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:586)
... 20 more
Caused by: android.content.res.Resources;NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x12/d=0x0 a=3 r=0x7f020173)
at android.content.res.Resources.loadDrawable(Resources.java:1899)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.<init>(View.java:2839)
at android.view.ViewOroup.<init>(ViewOroup.java:385)
at android.widget.FrameLayout.<init>(FrameLayout.java:99)
at android.widget.FrameLayout.<init>(FrameLayout.java:95)
at com.android.systemui.statusbar.tablet.TabletStatusBarView.<init>(TabletStatusBarView.java:40)
... 23 more
id=37 Removed android/com.android.internal.app.ResolverActivity idx=0 Map Size=2
id=37 Removed android/com.android.internal.app.ResolverActivity idx=-2 Map Size=2
[email protected] > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error Process com.andrcid.systemui has crashed ;co many times: killing!
I'm writing a music player with support for the equalizer in Android 3.0 and later. I've tested it on several devices, and it works.
However, I'm getting crash reports that look like this:
Code:
java.lang.SecurityException: Permission Denial: starting Intent {
act=android.media.action.DISPLAY_AUDIO_EFFECT_CONTROL_PANEL
cmp=com.sonyericsson.music/.equalizer.EqualizerActivity (has extras) }
from ProcessRecord{408ad5e0 2932:com.myskyspark.music/10114} (pid=2932,
uid=10114) requires null
at android.os.Parcel.readException(Parcel.java:1322)
at android.os.Parcel.readException(Parcel.java:1276)
at
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1351)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1374)
at android.app.Activity.startActivityForResult(Activity.java:2827)
at
com.myskyspark.music.OpenActivity.onOptionsItemSelected(OpenActivity.java:864)
at android.app.Activity.onMenuItemSelected(Activity.java:2205)
at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:748)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
at
com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532)
at
com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
at android.view.View$PerformClick.run(View.java:9210)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
at dalvik.system.NativeStart.main(Native Method)
And this (basically identical, only com.TEST.android.lvh instead of com.sonyericsson.music):
Code:
java.lang.SecurityException: Permission Denial: starting Intent {
act=android.media.action.DISPLAY_AUDIO_EFFECT_CONTROL_PANEL
cmp=com.TEST.android.lvh/.activity.Manager (has extras) } from
ProcessRecord{409cba50 17260:com.myskyspark.music/10075} (pid=17260,
uid=10075) requires null
at android.os.Parcel.readException(Parcel.java:1322)
at android.os.Parcel.readException(Parcel.java:1276)
at
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1351)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1374)
at android.app.Activity.startActivityForResult(Activity.java:2827)
at
com.myskyspark.music.OpenActivity.onOptionsItemSelected(OpenActivity.java:864)
at android.app.Activity.onMenuItemSelected(Activity.java:2205)
at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:758)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
at
com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532)
at
com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
at android.view.View$PerformClick.run(View.java:9080)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
Any ideas? Looks like the same problem as this one in Spotify, but the thread was never resolved. SecurityException means I didn't declare some permission it wanted, but "requires null"?
And source code is attached (warning: it may cause the more talented devs here to cry; I'm still learning).
Hi !
I'm trying to port CM10 (old system) to Galaxy Fame Lite (old and cheap phone). I may try to port a later version of CM if I succeed for CM10...
Right now the system boots but remains blocked in the boot animation. I've managed to use adb shell (this has not been easy). What happens right now is that system_server commits suicide with the following message in /data/system/[email protected]<time>.txt
Code:
Process: system_server
Build: samsung/cm_nevisnvess/nevisnvess:4.1.2/JZO54K/eng.grenie.20160927.110731:eng/test-keys
android.view.InflateException: Binary XML file line #71: Error inflating class android.widget.ScrollView
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:275)
at com.android.internal.app.AlertController.installContent(AlertController.java:240)
at android.app.AlertDialog.onCreate(AlertDialog.java:336)
at android.app.Dialog.dispatchOnCreate(Dialog.java:351)
at android.app.Dialog.show(Dialog.java:256)
at com.android.server.am.ActivityManagerService$2.handleMessage(ActivityManagerService.java:910)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1431)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
... 17 more
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x10804f4 a=1 r=0x10804f4}
at android.content.res.Resources.loadDrawable(Resources.java:1921)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.initializeScrollbars(View.java:3859)
at android.view.View.<init>(View.java:3493)
at android.view.ViewGroup.<init>(ViewGroup.java:427)
at android.widget.FrameLayout.<init>(FrameLayout.java:101)
at android.widget.ScrollView.<init>(ScrollView.java:161)
at android.widget.ScrollView.<init>(ScrollView.java:157)
... 20 more
Anybody knows what goes wrong?
Thanks!
Is there any custom recovery and rom for this device??
Hi,
I've tried updating system apps but settings app keep crashing.
Anyone recognize this error?
Thanks,
Mauro.
Code:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.xiaomi.discover/com.xiaomi.market.ui.UpdateAppsActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
at android.app.Instrumentation.execStartActivity(Instrumentation.java)
at android.app.Activity.startActivityForResult(Activity.java)
at android.app.Activity.startActivityForResult(Activity.java)
at android.app.Activity.startActivity(Activity.java)
at android.app.Activity.startActivity(Activity.java)
at com.android.settings.SettingsFragment.aPS(SettingsFragment.java)
at com.android.settings.SettingsFragment.aQw(SettingsFragment.java)
at com.android.settings.dM.onClick(SettingsFragment.java)
at android.view.View.performClick(View.java)
at android.view.View$PerformClick.run(View.java)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
Hi all
Thanks for an awesome community. I'm a long time reader, but only just joined
As the topic says I've accidentally uninstalled my native Chrome app using SD Maid (root). Skype immediately started failing and throwing errors...
android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:423)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
at android.webkit.CookieManager.getInstance(CookieManager.java:39)
at com.facebook.react.modules.network.b.c(SourceFile:158)
at com.facebook.react.modules.network.b.a(SourceFile:3096)
at com.psykar.cookiemanager.CookieManagerModule.clearAll(SourceFile:76)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.q.a(SourceFile:366)
at com.facebook.react.bridge.JavaModuleWrapper$b.invoke(SourceFile:283)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(SourceFile:176)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:794)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.a.dispatchMessage(SourceFile:31)
at android.os.Looper.loop(Looper.java:176)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(SourceFile:194)
at java.lang.Thread.run(Thread.java:764)
Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.fixupStubApplicationInfo(WebViewFactory.java:288)
at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:356)
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:383)
... 16 more
I tried reinstalling chrome, but the issue persists... Attempted to install Skype Lite (just to confirm issue) and that has the same issue, although the error is different.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skype.m2/com.skype.m2.views.SignInOAuth}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class android.webkit.WebView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2814)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1613)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6635)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class android.webkit.WebView
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class android.webkit.WebView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:651)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:724)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:792)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:867)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:870)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.i.b(SourceFile:287)
at android.support.v7.app.b.setContentView(SourceFile:139)
at android.a.e.a(SourceFile:276)
at android.a.e.a(SourceFile:261)
at com.skype.m2.views.SignInOAuth.onCreate(SourceFile:120)
at android.app.Activity.performCreate(Activity.java:7084)
at android.app.Activity.performCreate(Activity.java:7075)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2767)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1613)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6635)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:423)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
at android.webkit.WebView.getFactory(WebView.java:2536)
at android.webkit.WebView.ensureProviderCreated(WebView.java:2531)
at android.webkit.WebView.setOverScrollMode(WebView.java:2596)
at android.view.View.<init>(View.java:4580)
at android.view.View.<init>(View.java:4714)
at android.view.ViewGroup.<init>(ViewGroup.java:597)
at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
at android.webkit.WebView.<init>(WebView.java:643)
at android.webkit.WebView.<init>(WebView.java:588)
at android.webkit.WebView.<init>(WebView.java:571)
at android.webkit.WebView.<init>(WebView.java:558)
... 32 more
Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.fixupStubApplicationInfo(WebViewFactory.java:288)
at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:356)
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:383)
... 44 more
Can I do anything to rectify the issue, short of reflashing my Rom or restoring from miui?
Thanks for any suggestions
Talix said:
Hi all
Thanks for an awesome community. I'm a long time reader, but only just joined
As the topic says I've accidentally uninstalled my native Chrome app using SD Maid (root). Skype immediately started failing and throwing errors...
android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:423)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
at android.webkit.CookieManager.getInstance(CookieManager.java:39)
at com.facebook.react.modules.network.b.c(SourceFile:158)
at com.facebook.react.modules.network.b.a(SourceFile:3096)
at com.psykar.cookiemanager.CookieManagerModule.clearAll(SourceFile:76)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.q.a(SourceFile:366)
at com.facebook.react.bridge.JavaModuleWrapper$b.invoke(SourceFile:283)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(SourceFile:176)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:794)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.a.dispatchMessage(SourceFile:31)
at android.os.Looper.loop(Looper.java:176)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(SourceFile:194)
at java.lang.Thread.run(Thread.java:764)
Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.fixupStubApplicationInfo(WebViewFactory.java:288)
at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:356)
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:383)
... 16 more
I tried reinstalling chrome, but the issue persists... Attempted to install Skype Lite (just to confirm issue) and that has the same issue, although the error is different.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skype.m2/com.skype.m2.views.SignInOAuth}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class android.webkit.WebView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2814)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1613)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6635)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class android.webkit.WebView
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class android.webkit.WebView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:651)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:724)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:792)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:867)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:870)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.i.b(SourceFile:287)
at android.support.v7.app.b.setContentView(SourceFile:139)
at android.a.e.a(SourceFile:276)
at android.a.e.a(SourceFile:261)
at com.skype.m2.views.SignInOAuth.onCreate(SourceFile:120)
at android.app.Activity.performCreate(Activity.java:7084)
at android.app.Activity.performCreate(Activity.java:7075)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2767)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1613)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6635)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:423)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
at android.webkit.WebView.getFactory(WebView.java:2536)
at android.webkit.WebView.ensureProviderCreated(WebView.java:2531)
at android.webkit.WebView.setOverScrollMode(WebView.java:2596)
at android.view.View.<init>(View.java:4580)
at android.view.View.<init>(View.java:4714)
at android.view.ViewGroup.<init>(ViewGroup.java:597)
at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
at android.webkit.WebView.<init>(WebView.java:643)
at android.webkit.WebView.<init>(WebView.java:588)
at android.webkit.WebView.<init>(WebView.java:571)
at android.webkit.WebView.<init>(WebView.java:558)
... 32 more
Caused by: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to find donor package: com.android.chrome
at android.webkit.WebViewFactory.fixupStubApplicationInfo(WebViewFactory.java:288)
at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:356)
at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:383)
... 44 more
Can I do anything to rectify the issue, short of reflashing my Rom or restoring from miui?
Thanks for any suggestions
Click to expand...
Click to collapse
-Did you try deleting the app data of Skype (which you would have aldready did I assume)
-Clearing system cache
-Clear cache and davlik cache using a custom recovery such as twrp
-Lastly if nothing helps then you have to flash the rom
Hope my information was helpful
Regards,
milkyway3