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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:03:45+00:00 2026-05-31T19:03:45+00:00

In the ProGuard docs it reads: Google’s Dalvik VM can’t handle overloaded static fields.

  • 0

In the ProGuard docs it reads: “Google’s Dalvik VM can’t handle overloaded static fields.”
As I understand it, something like this

public class A {
  private static final Log log = LogFactory.getLog(A.class.getName());
...
}

public class B extends A {
  private static final Log log = LogFactory.getLog(B.class.getName());
...
}

is bad on Android then. It this really true or did I get something wrong?
What are the implication then (I can run my code now but dex fails after proguard treatment)?

  • 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-31T19:03:46+00:00Added an answer on May 31, 2026 at 7:03 pm

    I assume it means you can’t have two fields in class A, both named log, each of different types:

    public class A {
      private static final Log log = LogFactory.getLog(A.class.getName());
      private static final int log = 5;
      ...
    }
    

    You can’t do this in source code, but tools like ProGuard can generate .class files like this that make decompilation more interesting.

    You don’t need to worry about your B extends A example; that would be a bug in Dalvik. Such a bug would be fixed very promptly!

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

Sidebar

Related Questions

When I got something like this ERROR/AndroidRuntime(18677): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(18677): at com.companyname.a.a.a(Unknown Source)
I'm trying to use ProGuard with one of my applications, let's say A. This
I would like to use proguard to obfuscate my code, but am getting confused
We know in SDK 2.3 we can obfuscate APK with Proguard. The question is:
I can't seem to find the proper syntax for Proguard to filter out a
I'm using Proguard to obfuscate a library that has several @Autowired fields. The obfuscator
How can I tell proguard to keep my classmembers? I need them for JSON
i try obfuscate my code of android app with ProGuard . But after this
I'm getting following strange error when running the proguard with android.what this error means,is
Someone have a proguard-maven-plugin standar maven configuration that can I use for a Enterprise

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.