Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build process failed with "Error:Execution failed for task ':app:transformClassesWithNewClassShrinkerForDebug'. > Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them." - Proguard #206

Closed
SameerKhan1406 opened this issue Jan 11, 2017 · 2 comments

Comments

@SameerKhan1406
Copy link

SameerKhan1406 commented Jan 11, 2017

  • Android device: _XOLO
  • Android OS version: 5.0(lollipop)___
  • Google Play Services version: _____
  • Firebase/Play Services SDK version: _____

Step 3: Describe the problem:

Build gradle sync failed when project run.

// TODO(you): code here to reproduce the problem

Build gradle with :
apply plugin: 'com.android.application'

android {
  compileSdkVersion 24
  buildToolsVersion "24.0.3"
  useLibrary 'org.apache.http.legacy'

  defaultConfig {
      applicationId "com.abc"
      minSdkVersion 16
      targetSdkVersion 24
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      debug {
          minifyEnabled true
          useProguard false
          proguardFiles getDefaultProguardFile('proguard-android.txt'),
                  'proguard-rules.pro'
      }
      release {
          shrinkResources true
          minifyEnabled true
          proguardFiles getDefaultProguardFile('proguard-android.txt'),
                  'proguard-rules.pro'
      }
  }
}

dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:24.2.1'
  compile 'com.android.support:design:24.0.0'
  compile 'com.github.bumptech.glide:glide:3.7.0'
  compile 'com.android.support:support-v4:24.2.1'
  compile files('libs/sinch-android-rtc-3.9.9.jar')
  compile 'com.mcxiaoke.volley:library-aar:1.0.0'
  compile 'com.msg91.sendotp.library:library:2.7'
  compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
  }
minifyEnabled and shrinker both are creating the same problem again

I don't know I have updated IDE to 2.2.3 but didn't solved anything yet,  my build and compile version are 
buildToolsVersion "24.0.3"
compileSdkVersion 24
@samtstern
Copy link
Contributor

@SameerKhan1406 I don't see any firebase dependencies at all in your app so I am going to close this issue as it's not related to this repository. Please let me know if I am mistaken.

@devangichhatbar
Copy link

It seems the default shrinker has changed. Adding the configuration to turn on ProGuard seemed to work.

buildTypes {
release {
debuggable false
minifyEnabled true
useProguard true
getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
debug {
debuggable true
minifyEnabled true
useProguard true
getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants