“Ignoring InnerClasses attribute” warning is killing Eclipse

前端 未结 2 688
故里飘歌
故里飘歌 2020-12-18 22:23

I have a couple of imported jars that have this error in Eclipse when the project builds:

[2011-04-08 16:31:48 - MokbeeAndroid] Dx warning: Ignoring InnerCla         


        
相关标签:
2条回答
  • 2020-12-18 22:50

    If you recompile the source of the libraries in Maven, you may need to update the Java version within the POMs to 1.6 (or whatever Java version you're using for your project). Just from looking at Sanselan, I note it specifically has 1.4 as the version.

    0 讨论(0)
  • 2020-12-18 23:03

    This was causing me a lot of pain with the android-maven-plugin and other libraries that included commons-logging. It was blocking my build. What made it worse is that some libraries were included transitively, so simply using <exclude> would not work. With a little hint from another post, I determined I could keep out the offending library altogether with something like this:

        <!-- prevent commons-logging from being included by the Google HTTP client 
            dependencies -->
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
        </dependency>
    
    0 讨论(0)
提交回复
热议问题