码迷,mamicode.com
首页 > 移动开发 > 详细

android studio解决warning: Ignoring InnerClasses attribute for an anonymous inner class

时间:2016-06-19 17:03:20      阅读:450      评论:0      收藏:0      [点我收藏+]

标签:

在proguard-rules.pro中添加以下代码:

-keepattributes EnclosingMetho

build.gradle的编译配置如下:

apply plugin: ‘com.android.application‘

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.app.aib"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            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:23.4.0‘
}

  

android studio解决warning: Ignoring InnerClasses attribute for an anonymous inner class

标签:

原文地址:http://www.cnblogs.com/morag/p/5598219.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!