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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:47:12+00:00 2026-05-28T19:47:12+00:00

I have an Android App which consists on different modules. The Main module is

  • 0

I have an Android App which consists on different modules. The Main module is using some libs like Google’s GSON or the v4.support.package. A custom build script with the right proguard.cfg will build it, too.
Now I must integrate another "Android-Library" which uses partly the same libs (GSON support.v4). Beside from getting a lot of Notes like

Note: duplicate definition of program class [com.google.gson.Gson]

I get also some Notes like

[proguard] Note: com.google.gson.UnsafeAllocator: can’t find dynamically referenced class sun.misc.Unsafe

[proguard] Note: the configuration refers to the unknown class ‘sun.misc.Unsafe’

that I find strange cause i have some ‘keeps’ in my Proguard.cfg especially for that:

-keepattributes Signature, Annotation

-keep class com.google.gson.** {*;}

-keep class sun.misc.Unsafe { *; }

which works well on my project without referencing the module-library inside it.
I’m on the Latest SDK and Tools, and added a custom proguard.cfg to the module-library, which works well on the module-lib itself (if build in standalone-mode).
It seems to me, that the build is not depending on custom proguard.cfg inside library-projects. Any idea on what to try highly appreciated

  • 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-28T19:47:13+00:00Added an answer on May 28, 2026 at 7:47 pm

    I finally found a solution for it myself:
    with the last Android Tools (16), every Android-Library gets compiled on its own first.
    So when the lib has not a “standart” build and defines some custom build script including proguard –keeps, and this –keeps are defined on the same Project (excluding Android SDK classes, as thei’re not compiled) it leads to an proguard error.
    The Solution was do remove proguard out of the lib and copy the –keeps inside the main App

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

Sidebar

Related Questions

I have an android app which needs to be signed using a specific keystore
Would really appreciate some help with this. I have an app which consists of
I have an android app which uses camera. I am using a socket connection
I have android app which works fine. And now I want to add some
I have an android app which connects to a server using a socket connection
I have an android app in which I take a photo using the android
I have an array of objects in my Android app which I would like
I have an Android app with a ListActivity in the main view. The list
I'm defining a style XML for my android app. I have some TTF files
I have an Android project that branched into three different applications, app-1 , app-2

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.