What Is the "Ignoring Innerclasses Attribute" Warning Output During Compilation

What is the Ignoring InnerClasses attribute warning output during compilation?

This is quite common when including jar files. Although the warning isn't anything to worry about if you are just using the API normally, you should be able to get rid of them by compiling ical4j yourself from source within Eclipse (either build a new jar, or just drop the source into your own source folder). Though I should stress that unless you actually get problems, this isn't something to worry about.

what is this warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute

It is a common warning when including jar files.

Use below line in proguard to avoid warning

-keepattributes EnclosingMethod

android Dx warning: Ignoring InnerClasses attribute for an anonymous inner class jar file issue

Just fyi, this can also happen when compiling for java 1.7 and the library have been through proguard, adding this will solve the problem when compiling the library:

-keepattributes EnclosingMethod

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class

I think this is your main problem

The number of method references in a .dex file cannot exceed 64K.

To solve this put the following lines in your app level gradle file.

Put this line in defaultConfig block

multiDexEnabled true

And add the following dependencies

compile 'com.android.support:multidex:1.0.1'

After this rebuild your project. Hopefully this should resolve your error.

And try avoiding + symbol while adding dependencies in your project as you are doing with play services dependencies

To remove OutOfMemory error add this inside your android block in app level gradle file.

dexOptions {
//incremental true
javaMaxHeapSize "4g"
}


Related Topics



Leave a reply



Submit