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

  • SEARCH
  • Home
  • 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 7702479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:14:11+00:00 2026-05-31T23:14:11+00:00

I seem to have a tricky problem since the latest ADT update to release

  • 0

I seem to have a tricky problem since the latest ADT update to release 17.

I have made a simple application to illustrate my problem, I don’t know if I’m doing anything wrong. The main Activity of my application is inheriting from FragmentActivity in the support package and somehow the application crashes at launch.

To illustrate, I made a sample project.

First of all, here is the code of my dummy class, DummyProjectActivity, very simple:

public class DummyProjectActivity extends FragmentActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

Then, there is the manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="be.emich.labs"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".DummyProjectActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

The .jar file is imported correctly in the project and I am getting this stack trace:

E/AndroidRuntime(11509): FATAL EXCEPTION: main
E/AndroidRuntime(11509): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{be.emich.labs/be.emich.labs.DummyProjectActivity}: java.lang.ClassNotFoundException: be.emich.labs.DummyProjectActivity
E/AndroidRuntime(11509):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1879)
E/AndroidRuntime(11509):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
E/AndroidRuntime(11509):    at android.app.ActivityThread.access$600(ActivityThread.java:122)
E/AndroidRuntime(11509):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
E/AndroidRuntime(11509):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(11509):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(11509):    at android.app.ActivityThread.main(ActivityThread.java:4340)
E/AndroidRuntime(11509):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(11509):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(11509):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(11509):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(11509):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(11509): Caused by: java.lang.ClassNotFoundException: be.emich.labs.DummyProjectActivity
E/AndroidRuntime(11509):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
E/AndroidRuntime(11509):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime(11509):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime(11509):    at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
E/AndroidRuntime(11509):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1870)
E/AndroidRuntime(11509):    ... 11 more

What am I doing wrong here? Could this be a bug in the latest dev tools?

I am encountering the problem in every project that uses FragmentActivity from the compatibility library. I don’t get what could be wrong. Anyone else having this problem? Help would be greatly appreciated. I’m not having the problem with an Activity that inherits from FragmentActivity. I have uninstalled/reinstalled the application. Done various “clean project”. Restarted Eclipse.

UPDATE: The issue is apparently not linked to the compatibility package but the way ADT r17 handles linking of jar files. Jars to be included should be put into the libs/ folder and ADT will link them automatically. Otherwise they will be missing from the APK and make the app crash whenever the code from the jarfile is invoked.

  • 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-05-31T23:14:13+00:00Added an answer on May 31, 2026 at 11:14 pm

    Until the latest release tools right click > Add compatibility package on my project wasn’t working and I included the jar file manually through the project properties. I tried “Add compatibility package” again and since r17 it seems this is fixed for my machine. This fixed the problem.

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

Sidebar

Related Questions

I seem to have a problem with my very simple implementation of a file
I seem to have a problem with this SQL query: SELECT * FROM appts
I seem to have a problem with getting MVC to fill in my custom
I seem to have the exact opposite problem than this question on stopping dock
I seem to have a problem understanding how to conditionally test a boolean value
I have run into a bit of a tricky problem in some C++ code,
I am having quite a tricky problem, which i just cannot seem to solve.
Run into a tricky problem with db4o and a simple nested structures. Problem: when
I made this fiddle to show my problem. I have a list and I
I seem to have an app on my Dev server that has lots of

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.