• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

How to fix "android.view.InflateException: Binary XML file line #15"

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm currently working on a Google ML application (in Java) for Android. The application aims to detect objects in real time camera view provided by the device camera. This is a single activity application, however, two additional classes (GraphicOverlay.java & RectOverlay.java) were added to draw the graphic overlay for the boundingBoxes.

Upon running the application, it immediately shut down after displaying on my device for approximately 2 seconds. I've attempted to find ways to resolve the error, but none that fit this error specifically . Here is my code;

Logcat:


activity_main.xml:


Any additional information required to supplement this question shall be provided upon request.
 
Sheriff
Posts: 22265
119
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you get a stack trace, it's often helpful to look at the full stack trace. The root cause is not at the top but at the bottom (side note: https://bugs.openjdk.java.net/browse/JDK-6507809 has a suggestion to reverse the order of stack traces, starting with the root).
In this case, the root cause says quite a lot:

Is the class' full name correct, including the package? Is your class path set up correctly?
 
Mason Buchanan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@RobSpoor

My goodness, you are absolutely right! This following line is not the correct class name at all:



This following line is the correct class name:



which leads me to wonder where this class is currently being called from? Hopefully, when I know this I can then answer your second question as well.
 
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic