mfinkle / geckobrowser

Very basic Android browser application that uses the GeckoView widget
Mozilla Public License 2.0
103 stars 26 forks source link

Could not find GeckoView.apk! #5

Open MrRhino opened 10 years ago

MrRhino commented 10 years ago

Fails during android install on Mac OS X Lion 10.7.5

01-04 04:57:49.979: E/AndroidRuntime(8309): FATAL EXCEPTION: main 01-04 04:57:49.979: E/AndroidRuntime(8309): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.starkravingfinkle.geckobrowser/com.starkravingfinkle.geckobrowser.MainActivity}: android.view.InflateException: Binary XML file line #29: Error inflating class org.mozilla.gecko.GeckoView 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2194) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.access$600(ActivityThread.java:139) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.os.Handler.dispatchMessage(Handler.java:99) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.os.Looper.loop(Looper.java:154) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.main(ActivityThread.java:4945) 01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.reflect.Method.invokeNative(Native Method) 01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.reflect.Method.invoke(Method.java:511) 01-04 04:57:49.979: E/AndroidRuntime(8309): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 01-04 04:57:49.979: E/AndroidRuntime(8309): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 01-04 04:57:49.979: E/AndroidRuntime(8309): at dalvik.system.NativeStart.main(Native Method) 01-04 04:57:49.979: E/AndroidRuntime(8309): Caused by: android.view.InflateException: Binary XML file line #29: Error inflating class org.mozilla.gecko.GeckoView 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 01-04 04:57:49.979: E/AndroidRuntime(8309): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:269) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.Activity.setContentView(Activity.java:1885) 01-04 04:57:49.979: E/AndroidRuntime(8309): at com.starkravingfinkle.geckobrowser.MainActivity.onCreate(MainActivity.java:32) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.Activity.performCreate(Activity.java:4531) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1071) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2150) 01-04 04:57:49.979: E/AndroidRuntime(8309): ... 11 more 01-04 04:57:49.979: E/AndroidRuntime(8309): Caused by: java.lang.ClassNotFoundException: org.mozilla.gecko.GeckoView 01-04 04:57:49.979: E/AndroidRuntime(8309): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) 01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) 01-04 04:57:49.979: E/AndroidRuntime(8309): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.createView(LayoutInflater.java:552) 01-04 04:57:49.979: E/AndroidRuntime(8309): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) 01-04 04:57:49.979: E/AndroidRuntime(8309): ... 21 more

gen-failure commented 10 years ago

I have exactly same issue, did you find solution for that?

MrRhino commented 10 years ago

No. But you should consider this project https://crosswalk-project.org/ Or DIY https://code.google.com/p/chromium/wiki/AndroidBuildInstructions

kevin-smets commented 10 years ago

Holy moly @MrRhino that's pure gold. Thanks for both of the links :). Will need to experiment right away. Sorry that my answer contributed exactly nothing at all to this issue.