question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"This class was probably produced by a compiler that did not target the modern .class file format"

See original GitHub issue

Hi guys, Does anybody know anything about this problem? I’m getting this during compilation. The app runs fine, but this is somewhat disturbing as it appears as an error and adds to the error count… :\

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.qozix.tileview.TileView$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.qozix.tileview.TileView$SavedState$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.qozix.tileview.tiles.TileCanvasViewGroup$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.

I’m testing this on:

  • API 23 device (ASUS Zenfone 2 Z00A).
  • Android Studio 2.1 preview 5.
  • 'com.android.tools.build:gradle:2.1.0-alpha5'
  • 'com.google.gms:google-services:2.1.0-alpha4'
  • 'com.qozix:tileview:2.1.2'
  • Gradle 2.12
  • And also:
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_7
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
moagriuscommented, Apr 7, 2016

i think that might be a proguard thing…? i’m really not sure though, i’ll leave this open until i get some time to poke around

0reactions
moagriuscommented, Apr 29, 2016

i’m not seeing any similar warnings on an app using 2.1.5, so closing it.

thanks @Dev-iL for posting!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Warning - Ignoring InnerClasses attribute (jnamed)
This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile...
Read more >
How to solve unable to convert classes into dex format error
This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile...
Read more >
Facing issue while compiling companion app
This class was probably produced by a [java] compiler that did not target the modern .class file format. The recommended
Read more >
Android Question Uncaught translation error: java.lang ... - B4X
This class was probably produced by a compiler that did not target the modern .class file format. The recommended
Read more >
Android Studio 2.2 : Build successful with 1944 errors ...
This class was probably produced by a. Error:compiler that did not target the modern .class file format. The recommended. Error:solution is to recompile...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found