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 3457528
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:52:16+00:00 2026-05-18T09:52:16+00:00

I did the following: Create a working Android project (not a library or test

  • 0

I did the following:

  1. Create a working Android project (not a library or test project) in Eclipse. It has a single package called X with an activity X.A.
  2. Create a new Java package Y within the aforementioned project with at least one class Y.C.
  3. Call Y.C from within X.A (that is, call something in the new package from the original package that previously works).
  4. Build and run the Android project.

It builds fine, but throws NoClassDefFoundError on the first line using Y.C, saying it cannot find Y.C. When I Refactor -> Move Y.C into package X (so it is now X.C), the runtime exception is no longer thrown. What’s wrong?

Vague hint: I’ve read that similar problems can happen when the build-time and runtime classpaths get out of sync somehow, but I haven’t found yet how to troubleshoot or fix the issue.

  • 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-18T09:52:16+00:00Added an answer on May 18, 2026 at 9:52 am

    In your AndroidManifest.xml when defining your activities you have to set the fully qualified class name for activities residing in a sub-package or even another package.

    A fully qualified class name would be like com.example.my.cool.app.Activity. Alternatively when only working with sub-packages you can set it like this android:name=".app1.AnotherActivity" when your base-package looks like this com.example.my.cool.

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

Sidebar

Related Questions

If I had the following select, and did not know the value to use
I'm working on a simple project to create tables and insert data into them,
I am working on a REST WCF project and when I implement the following
I work in Ruby, and have to create a single regexp for the following
I did the following to upper case the first letter in each word but
Trying to follow a technique found at bzr and gitosis I did the following:
I did it by creating OLE object with Delphi in 2000/NT/XP as following: Voice
Did you ever had a bug in your code, you could not resolve? I
I'm starting with ASP.NET MVC, and working with NerdDinner as reference. I did the
I have the following problem using subversion: I'm currently working on the trunk 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.