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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:26:19+00:00 2026-06-03T09:26:19+00:00

<uses-sdk android:minSdkVersion=7 /> <application android:description=@string/app_description android:icon=@drawable/icon android:label=@string/app_name android:theme=@android:style/Theme.Light > <activity android:name=com.xyz.Main.MainActivity android:label=@string/app_name > <intent-filter>

  • 0
<uses-sdk android:minSdkVersion="7" />

<application
    android:description="@string/app_description"
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Light" >
    <activity
        android:name="com.xyz.Main.MainActivity"
        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>

And the Lint-tool tells me that my activity isn’t registered in the manifest and if I try to run it, LogCat kindly tells me:

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.name/com.xyz.Main.MainActivity}: java.lang.ClassNotFoundException: com.xyz.Main.MainActivity

This is driving me nuts, I’ve re-installed Eclipse as well as updated the SDK and stuff to API-level 17 and now I seem to be unable to execute my very own app. I’ve got absolutely no idea what the hell’s wrong here, apparently the activity is perfectly well registered within the manifest.xml.

Thanks in advance.

  • 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-03T09:26:21+00:00Added an answer on June 3, 2026 at 9:26 am

    I’ve got the solution. Today I felt motivated enough get my hands on this project again and tried to port the project to a Linux-distribution (which led me to the conclusion that Linux is a pain in the ass for Android developent) as well as to integrate it “line by line” to a new Android project.

    I used to implement String- & Integer-interfaces with certain constants and values (e.g. 0x00 for “visible”). Unfortunately, Android seems to have trouble with interfaces and activity-classes. Removing the interface and making static references onto the constants made the emulator get rid of the problem.

    public class MyActivity extends Activity implements Options // [...]
    Btn.setVisibility(VISIBLE); // bad idea
    
    public class MyActivity extends Activity // [...]
    Btn.setVisibility(Options.VISIBLE); // good idea
    

    Hopefully this is gonna help at least someone searching for this issue.

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

Sidebar

Related Questions

I have an Android application with this lines in the manifest: <uses-sdk android:minSdkVersion=8 android:targetSdkVersion=13/>
I developed application on 1.6.in manifest i gave: <uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/>. When I run
<uses-sdk android:minSdkVersion=8 /> onClick method defined in xml <TextView android:id=@+id/titlemainpage android:layout_width=wrap_content android:layout_height=wrap_content android:text=Social To
I have an Android App with: <uses-sdk android:minSdkVersion=7 android:targetSdkVersion=14 /> So mainly it uses
I have in my manifest: <uses-sdk android:minSdkVersion=8 android:targetSdkVersion=13/> I want to allow 2.2 to
I have a problem with mapView. This is code: Android Manifest: <uses-sdk android:minSdkVersion=8 />
I have an application that uses the Facebook SDK for Android to login into
Details: I'm extending ActionBarActivity. Eclipse and SDK fully patched as of 2011-11-06. <uses-sdk android:minSdkVersion=4
My app is compatible from Android 2.x through 4.x: <uses-sdk android:minSdkVersion=7 android:targetSdkVersion=15 /> For
I am trying to specify the minSDKVersion: <uses-sdk android:minSdkVersion=5 /> Whenever I add this

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.