Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8509489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:26:54+00:00 2026-06-11T03:26:54+00:00

I am working on Yfiles for Android 2.2. When i imported the tutorial, given

  • 0

I am working on Yfiles for Android 2.2. When i imported the tutorial, given by the library owners. It is showing me the following error and application is not running. If some one can understand the following exception please do me correct.

09-11 10:28:50.478: E/AndroidRuntime(11938): FATAL EXCEPTION: main
09-11 10:28:50.478: E/AndroidRuntime(11938): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yworks.android/com.yworks.android.SampleApplication}: android.view.InflateException: Binary XML file line #8: Error inflating class com.yworks.yfiles.ui.GraphControl
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1872)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.ActivityThread.access$1500(ActivityThread.java:135)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.os.Handler.dispatchMessage(Handler.java:99)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.os.Looper.loop(Looper.java:150)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.ActivityThread.main(ActivityThread.java:4389)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at java.lang.reflect.Method.invokeNative(Native Method)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at java.lang.reflect.Method.invoke(Method.java:507)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at dalvik.system.NativeStart.main(Native Method)
09-11 10:28:50.478: E/AndroidRuntime(11938): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.yworks.yfiles.ui.GraphControl
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:250)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.Activity.setContentView(Activity.java:1742)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at com.yworks.android.SampleApplication.onCreate(SampleApplication.java:28)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1836)
09-11 10:28:50.478: E/AndroidRuntime(11938):    ... 11 more
09-11 10:28:50.478: E/AndroidRuntime(11938): Caused by: java.lang.ClassNotFoundException: com.yworks.yfiles.ui.GraphControl in loader dalvik.system.PathClassLoader[/data/app/com.yworks.android-1.apk]
09-11 10:28:50.478: E/AndroidRuntime(11938):    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.createView(LayoutInflater.java:471)
09-11 10:28:50.478: E/AndroidRuntime(11938):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
09-11 10:28:50.478: E/AndroidRuntime(11938):    ... 20 more

The java file is:

package com.yworks.android;

import android.app.Activity;
import android.os.Bundle;
import com.yworks.yfiles.ui.GraphControl;
import com.yworks.yfiles.ui.model.GraphExtension;
import com.yworks.yfiles.ui.model.IGraph;

/**
 * Getting Started - 01 Creating the View
 *
 * This demo simply introduces class {@link GraphControl}, the
 * central UI element for working with graphs in @PRODUCT@,
 * and {@link GraphExtension}, which provides convenience
 * methods for working with IGraphs.
 */
public class SampleApplication extends Activity {

  private GraphControl graphControl;
  private GraphExtension graphExtension;

  @Override
  protected void onCreate( final Bundle savedInstanceState ) {

        super.onCreate(savedInstanceState);
        // Sets the content view to the main layout loaded from
        // res/layout/main.xml
        setContentView(R.layout.main);
        // The GraphControl is declared in the loaded layout,
        // so now we can retrieve a reference to it
        graphControl = (GraphControl) findViewById(R.id.graphControl);
        // GraphExtension provides convenience methods
        // which are used in the following demos.
        graphExtension = new GraphExtension(graphControl.getGraph());

    // We'll initialize the app here in the following demos.
  }

  /**
   * Convenience property for getting the GraphControl's Graph
   * @return The GraphControls Graph
   */
  public IGraph getGraph() {
    return graphControl.getGraph();
  }

}

Thanks
Regards
iambilloo

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:26:55+00:00Added an answer on June 11, 2026 at 3:26 am

    Create a folder in your app directory named “libs” and put your external jars there. Correct Java Build Path in eclipse and then rebuild (clean+build) your app! I had a similar problem that was gone this way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working with H2 I get this error when I try to write a row
Working on game where plates will be falling from top to bottom. Some plates
Working through the five minute Xtext tutorial (http://www.eclipse.org/Xtext/documentation/2_1_0/010-xtext-in-5-minutes.php) I get to Generating The Language
Working on my first Android app and facing a challenge. I am pulling calls
Working in Scala-IDE, I have a Java library, in which one of the methods
Working with some basic java apps on CentOS 5 linux and I have my
Working with MVC 2 ad with the help of some friends I thought all
Working SQL The following code works as expected, returning two columns of data (a
Working on a console application using Delphi 7, and have run into a problem.
Working with AJAX, I encountered the following problem: http://jsbin.com/iriquf/1 data variable is a basic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.