Исправить ошибку «Игнорировать атрибут InnerClasses»

Я хотел бы исправить это предупреждение, которое даст мне возможность построить этот вывод:

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(com.sun.jna.Native$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.sun.jna.Native$2) 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.sun.jna.Native$3) 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.sun.jna.Native$4) 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.sun.jna.Native$5) 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.sun.jna.Native$6) 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.sun.jna.Native$7) 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.sun.jna.NativeLibrary$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.sun.jna.NativeLibrary$2) 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.sun.jna.Structure$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.sun.jna.win32.W32APITypeMapper$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.sun.jna.win32.W32APITypeMapper$2) 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. 

Я уже пробовал другое решение, данное по этим вопросам:

  • Что это предупреждение: Игнорирование атрибута InnerClasses для анонимного внутреннего класса, который не связан с ассоциированным атрибутом EnclosingMethod
  • Каков атрибут «Игнорирование InnerClasses» во время компиляции?
  • Проблема Progaurd «Предупреждение: игнорирование атрибута InnerClasses для анонимного внутреннего класса»
  • Android Dx warning: Игнорирование атрибута InnerClasses для анонимного внутреннего файла jar-файла

Это мой файл build.gradle:

 apply plugin: 'com.android.application' apply plugin: 'com.neenbedankt.android-apt' android { compileSdkVersion 23 buildToolsVersion "23.0.3" useLibrary 'org.apache.http.legacy' defaultConfig { applicationId "com.example.marco.myapp" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } lintOptions { abortOnError false } dexOptions { preDexLibraries true javaMaxHeapSize "3g" incremental true dexInProcess = true } packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' exclude 'META-INF/maven/com.google.guava/guava/pom.properties' exclude 'META-INF/maven/com.google.guava/guava/pom.xml' } } dependencies { compile files('libs/slf4j-api-1.7.5.jar') //include jar libraries -> rstincanoffline dependencies compile fileTree(include: ['*.jar'], dir: 'libs') compile files('libs/slf4j-jdk14-1.7.5.jar') compile files('libs/tincan-0.3.1-SNAPSHOT-jar-with-dependencies-jarjar.jar') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' // stetho -> for debug purpose compile 'com.facebook.stetho:stetho:1.3.1' compile 'com.facebook.stetho:stetho-okhttp3:1.3.1' compile 'com.facebook.stetho:stetho-js-rhino:1.3.1' //gson dependency compile 'com.google.code.gson:gson:2.4' //google autovalue dependencies //apt 'com.google.auto.value:auto-value:1.1' compile 'com.google.auto.value:auto-value:1.2' apt 'com.google.guava:guava:19.0' provided 'org.glassfish:javax.annotation:10.0-b28' apt 'com.google.code.findbugs:jsr305:2.0.1' apt 'com.google.auto.service:auto-service:1.0-rc2' apt 'com.sun.jna:jna:3.0.9' //picasso dependency compile 'com.squareup.picasso:picasso:2.5.2' //realm dependency compile 'io.realm:realm-android:0.83.0+' } 

Если бы кто-то мог мне помочь, это было бы здорово!

Intereting Posts
Как Google G Suite Apps обменивается данными? Самый простой способ открыть кнопку браузера для определенного URL-адреса Мгновенный запуск PagerAdapter Android Не удалось прочитать дескрипторы файла входного канала из отчета сбоя посылки Простая относительная компоновка, соответствие родительскому праву не работает Android MapView – автоматическое масштабирование до тех пор, пока не будут видны все ItemizedOverlay Android: html в strings.xml ToolBarAndroid не отображается в ReactNative Есть ли способ обновить несколько TextView с помощью ArrayAdapter? Андроидальный диалог Жизненный цикл активности Android: государственный заказ при запуске новой активности Отправить данные изображения в приложение Android из App Engine Как получить версию приложения в магазине воспроизведения FragmentPagerAdapter отображает все содержимое фрагмента на первой странице Запустить контрольно-измерительный тест с использованием Espresso: класс ref в предварительно проверенном классе разрешен к неожиданному выполнению