[Android] Crash when launching the Hello template

150 views
Skip to first unread message

Nicolas Blanco

unread,
Sep 22, 2014, 6:41:07 AM9/22/14
to rubym...@googlegroups.com
Hello there,

I'm trying the latest beta with preliminary Android support and don't manage to get the Hello template running unmodified.

I've already opened a ticket, just wanted to know if there are other people experiencing the same problem.


Android 4.4.4 device (OnePlusOne).

➜ Hello rake device
Install ./build/Development-19/Hello.apk
6384 KB/s (634046 bytes in 0.096s)
Start com.yourcompany.hello/.MainActivity
————- beginning of /dev/log/main
————- beginning of /dev/log/system
E/AndroidRuntime(24383): FATAL EXCEPTION: main
E/AndroidRuntime(24383): Process: com.yourcompany.hello, PID: 24383
E/AndroidRuntime(24383): android.view.InflateException: Binary XML file line #30: Error inflating class com.android.internal.widget.ActionBarContainer
E/AndroidRuntime(24383): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
E/AndroidRuntime(24383): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
E/AndroidRuntime(24383): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
E/AndroidRuntime(24383): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
E/AndroidRuntime(24383): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
E/AndroidRuntime(24383): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
E/AndroidRuntime(24383): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3287)
E/AndroidRuntime(24383): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3350)
E/AndroidRuntime(24383): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1731)
E/AndroidRuntime(24383): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2861)
E/AndroidRuntime(24383): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2270)
E/AndroidRuntime(24383): at android.app.ActivityThread.access$800(ActivityThread.java:145)
E/AndroidRuntime(24383): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
E/AndroidRuntime(24383): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(24383): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(24383): at android.app.ActivityThread.main(ActivityThread.java:5140)
E/AndroidRuntime(24383): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(24383): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(24383): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime(24383): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
E/AndroidRuntime(24383): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(24383): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime(24383): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime(24383): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/AndroidRuntime(24383): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
E/AndroidRuntime(24383): … 20 more
E/AndroidRuntime(24383): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-mdpi/ic_allapps.png from drawable resource ID #0×10800bd
E/AndroidRuntime(24383): at android.content.res.Resources.loadDrawable(Resources.java:2214)
E/AndroidRuntime(24383): at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
E/AndroidRuntime(24383): at android.view.View.<init>(View.java:3561)
E/AndroidRuntime(24383): at android.view.ViewGroup.<init>(ViewGroup.java:470)
E/AndroidRuntime(24383): at android.widget.FrameLayout.<init>(FrameLayout.java:101)
E/AndroidRuntime(24383): at android.widget.FrameLayout.<init>(FrameLayout.java:97)
E/AndroidRuntime(24383): at com.android.internal.widget.ActionBarContainer.<init>(ActionBarContainer.java:52)
E/AndroidRuntime(24383): … 23 more
E/AndroidRuntime(24383): Caused by: java.io.FileNotFoundException: res/drawable-mdpi/ic_allapps.png
E/AndroidRuntime(24383): at android.content.res.AssetManager.openNonAssetNative(Native Method)
E/AndroidRuntime(24383): at android.content.res.AssetManager.openNonAsset(AssetManager.java:427)
E/AndroidRuntime(24383): at android.content.res.Resources.loadDrawable(Resources.java:2205)
E/AndroidRuntime(24383): … 29 more
>> E/dalvikvm(24326): Could not find class ‘android.support.v4.app.FragmentActivity’, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.showErrorDialogFragment
E/dalvikvm(24326): Could not find class ‘android.support.v4.app.FragmentActivity’, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.showErrorDialogFragment
rake aborted!
Interrupt:
/Library/RubyMotionPre/lib/motion/project/template/android.rb:466:in `run_apk’
/Library/RubyMotionPre/lib/motion/project/template/android.rb:490:in `block (2 levels) in <top (required)>’
Tasks: TOP => device => device:start
(See full trace by running task with —trace)
/Users/nicolas/.rbenv/versions/2.1.2/bin/rake: Interrupt

Folivi Fofo

unread,
Sep 25, 2014, 6:05:21 PM9/25/14
to rubym...@googlegroups.com
Same whyle running on the terminal

Darren Stone

unread,
Apr 6, 2015, 8:16:44 PM4/6/15
to rubym...@googlegroups.com
Same, on OnePlusOne, just now.  RubyMotion 3.8.  Same error with `rake device` on unmodified "Hello" template.

What's the ticket?  Was there a resolution?  Cheers.

-Darren.
Reply all
Reply to author
Forward
0 new messages