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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:03:15+00:00 2026-06-11T23:03:15+00:00

Platform: MonoDroid v4.2.4 IDE: Visual Studio 2012 Minimum SDK version: API 12 I’m having

  • 0
  • Platform: MonoDroid v4.2.4
  • IDE: Visual Studio 2012
  • Minimum SDK version: API 12

I’m having runtime issues when trying to utilize the LocalBroadcastManager class included in the Android.Support.v4.Content namespace. In my IDE, I’ve explicitly added the reference and can scope the namespace/class fine, and, after writing some code, compiles as expected. However, upon application deployment and launch, I’m prompted with the error: “NoClassDefFoundError: android/support/v4/content/LocalBroadcastManager”

Here’s the code that prompts the runtime error (DSC_Discconected_From_Device is a class that inherits from BroadcastReceiver). It stops execution at the last line.

        IntentFilter filter = new IntentFilter(UsbManager.ActionUsbDeviceDetached);

        DSC_Disconnected_From_Device Receiver = new DSC_Disconnected_From_Device();

        LocalBroadcastManager.GetInstance(this).RegisterReceiver(Receiver, filter);

Under the SDK manager, all the API packages are installed, as well as the “Support Library” package under extras.

Where is it looking for the definition of the class? I’ve presumably copied the source, LocalBroadcastManager.java, to paths in the android-sdk framework where it “might” be looking. For example: ..\android-sdk\extras\android\support\v4\src\honeycomb\android\support\v4\content\LocalBroadcastManager.java

Ideas?

Edit: Forgot to mention that my project already references the support library, android-support-v4, in the folder “libs”, located in the root of my project. I had to create the directory and add it through Visual Studio.

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

    The problem seems to be related to the “properties” of the android-support-v4.jar library.

    By default, the “Build Action” listed in the Advanced Properties in Visual Studio had a value of Content. I switched the value to AndroidJavaLibrary and the runtime error has disappeared.

    However, the BroadcastReceiver isn’t receiving the USB disconnect intent, hmm… Will update this answer accordingly.

    Edit: I could never get a LocalBroadcastReceiver to work, so I had to use a regular one.

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

Sidebar

Related Questions

Platform used : Microsoft Visual Studio 2010 (C#) Database : SQL Server 2008 R2
I use the platform virb.com for my website and am having issues with getting
Platform: Windows 7, 64 bit (x64), Visual Studio 2008 I chose Python & Swig
Platform : Visual Studio 2008 SP1 with Resharper 4.1, .NET 3.5 I have a
Platform: WPF, .NET 4, Visual Studio 2010 XAML code is as below: <telerik:RadTreeView x:Name=mytree
Platform: ASP.NET 4.0, MVC 4 RC, VS 2012 Update: I've answer my question, myself.
We are considering adopting MonoTouch and MonoDroid for building a cross platform business App.
We've begun to build Cross platform Android/iOS apps , having built exclusively in MonoTouch
I am trying to use IronPython with monodroid (using a Android 4 phone) so
platform- win. Well i'm trying to get a value of a key named SunJavaUpdateSched

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.