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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:57:18+00:00 2026-06-12T23:57:18+00:00

perhaps it’s a newbie question because I’m still new to java/android..sorry.. I’m getting this

  • 0

perhaps it’s a newbie question because I’m still new to java/android..sorry.. I’m getting this following errorLog for onclick(SettingActivity). I found some similar posts talk about jar file which I already imported from urban airship library. hope someone can help me get through this kindly. Thank you much!

Unable to resolve superclass of Lcom/app/android/SettingActivity; (2487)
Link of class 'Lcom/app/android/SettingActivity;' failed
Could not find class 'com.app.android.SettingActivity', 
  referenced from method com.app.android.HomeActivity.onOptionsItemSelected
VFY: unable to resolve const-class 594 (Lcom/app/android/SettingActivity;) 
  in Lcom/app/android/HomeActivity;

HomeActivity.java

// Initiating Menu XML

@Override
public boolean onCreateOptionsMenu(Menu bottom_menu) {
    MenuInflater menuInflater = getMenuInflater();
    menuInflater.inflate(R.menu.bottom_menu, bottom_menu);
    return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
    case R.id.btn_logout:
        userFunctions.logoutUser(getApplicationContext());
        Intent login = new Intent(getApplicationContext(), LoginActivity.class);
        login.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(login);
        finish();
        return true;
    case R.id.btn_setting:
        Intent i = new Intent(getApplicationContext(), SettingActivity.class);
        startActivity(i);
        finish();
        return true;
    default:
        return super.onOptionsItemSelected(item);
    }
}

SettingActivity.java

package com.app.android;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.urbanairship.Logger;
import com.urbanairship.analytics.InstrumentedActivity;
import com.urbanairship.location.UALocationManager;

public class SettingActivity extends InstrumentedActivity {

    Button launchButton, locationButton;
    IntentFilter boundServiceFilter;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.setting);

update

Now i get these error after clean up..

FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.app.android.SettingActivity
   at com.app.android.HomeActivity.onOptionsItemSelected(HomeActivity.java:169)
   at android.app.Activity.onMenuItemSelected(Activity.java:2507)
   at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:982)
   at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735)
   at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:149)
   at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874)
   at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:468)
   at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:126)
   at android.view.View$PerformClick.run(View.java:14165)
   at android.os.Handler.handleCallback(Handler.java:605)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:137)
   at android.app.ActivityThread.main(ActivityThread.java:4517)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
   at dalvik.system.NativeStart.main(Native Method)

enter image description here

  • 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-12T23:57:19+00:00Added an answer on June 12, 2026 at 11:57 pm

    Try, creating a folder libs in your project directory (parallel to drawables, assets etc.) and put all your external jars there..

    Then right click on your project -> configure build path-> add external jars (add them from libs folder),

    and clean your project.. should work fine..

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

Sidebar

Related Questions

Perhaps this is a simple newbie C# question, but so be it---it will be
Perhaps this is an effect of installing the new 4.5 beta, but my simulator
Perhaps it is a dumb question but I am confused with the following: Are
Perhaps this isn't the best forum for this question. If so, would one of
Perhaps I am getting rusty (have been writing in Python recently). Why does this
Perhaps a stupid question, but what exactly is the purpose of this Delphi folder?:
Perhaps this is a duplicate question, but I havn't found something by myself. Basically
Perhaps an odd question.. I'm currently struggling to understand why the following equates to
Perhaps this is a non-question, but how do you make use of the Django
Perhaps a noob question, but take this T-SQL query in mind: UPDATE Table SET

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.