Our team intervenes within 48 hours, we recommend you submit a public ticket so that other developers can help to fix the issue as soon as possible.

If you purchased the item 6 months ago, please read the Item Support Policy carefully before submitting a ticket.

Note: don’t share item or server credentials on public, use the private option.

Okay
  Public Ticket #2839241
Android Code issue
Closed

Comments

  •  1
    germaniuminc started the conversation

    Hi

    i have an issue with android code in latest android studio version 

    please look below codes errors 

    -----------------------------------------------------------------------------------

    Executing tasks: [:app:assembleDebug] in project /Users/dhavalkoradiya/Downloads/Android-2.6

    > Configure project :app
    AGPBI: {"kind":"warning","text":"DSL element 'annotationProcessorOptions.includeCompileClasspath' is obsolete. It will be removed in version 7.0 of the Android Gradle plugin. It does not do anything and AGP no longer includes annotation processors added on your project's compile classpath","sources":[{}]}
    AGPBI: {"kind":"warning","text":"DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'. It will be removed in version 7.0 of the Android Gradle plugin.","sources":[{}]}

    > Task :app:preBuild UP-TO-DATE
    > Task :app:preDebugBuild UP-TO-DATE
    > Task :app:compileDebugAidl NO-SOURCE
    > Task :app:compileDebugRenderscript NO-SOURCE
    > Task :app:dataBindingMergeDependencyArtifactsDebug UP-TO-DATE
    > Task :app:dataBindingMergeGenClassesDebug UP-TO-DATE
    > Task :app:generateDebugResValues UP-TO-DATE
    > Task :app:generateDebugResources UP-TO-DATE
    > Task :app:injectCrashlyticsMappingFileIdDebug UP-TO-DATE
    > Task :app:processDebugGoogleServices UP-TO-DATE
    > Task :app:mergeDebugResources UP-TO-DATE
    > Task :app:dataBindingGenBaseClassesDebug UP-TO-DATE
    > Task :app:dataBindingTriggerDebug UP-TO-DATE
    > Task :app:generateDebugBuildConfig UP-TO-DATE
    > Task :app:javaPreCompileDebug UP-TO-DATE
    > Task :app:checkDebugAarMetadata UP-TO-DATE
    > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
    > Task :app:extractDeepLinksDebug UP-TO-DATE
    > Task :app:processDebugMainManifest UP-TO-DATE
    > Task :app:processDebugManifest UP-TO-DATE
    > Task :app:processDebugManifestForPackage UP-TO-DATE
    > Task :app:processDebugResources UP-TO-DATE

    > Task :app:compileDebugJavaWithJavac FAILED
    The following annotation processors are not incremental: jetified-realm-annotations-processor-4.1.1.jar (io.realm:realm-annotations-processor:4.1.1).
    Make sure all annotation processors are incremental to improve your build speed.

    > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
    > Task :app:mergeDebugShaders UP-TO-DATE
    > Task :app:compileDebugShaders NO-SOURCE
    > Task :app:generateDebugAssets UP-TO-DATE
    > Task :app:mergeDebugAssets UP-TO-DATE
    > Task :app:compressDebugAssets UP-TO-DATE
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:mergeDebugJniLibFolders UP-TO-DATE
    > Task :app:checkDebugDuplicateClasses FAILED
    > Task :app:mergeDebugNativeLibs UP-TO-DATE
    > Task :app:stripDebugDebugSymbols UP-TO-DATE
    > Task :app:validateSigningDebug UP-TO-DATE
    > Task :app:writeDebugAppMetadata UP-TO-DATE
    > Task :app:writeDebugSigningConfigVersions UP-TO-DATE

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
       > Duplicate class com.mikepenz.iconics.typeface.IIcon found in modules jetified-iconics-core-2.8.1-runtime (com.mikepenz:iconics-core:2.8.1) and jetified-iconics-typeface-api-5.1.1-runtime (com.mikepenz:iconics-typeface-api:5.1.1)
         Duplicate class com.mikepenz.iconics.typeface.ITypeface found in modules jetified-iconics-core-2.8.1-runtime (com.mikepenz:iconics-core:2.8.1) and jetified-iconics-typeface-api-5.1.1-runtime (com.mikepenz:iconics-typeface-api:5.1.1)
         
         Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

    * Get more help at https://help.gradle.org

    BUILD FAILED in 3s
    28 actionable tasks: 2 executed, 26 up-to-date


    com.mikepenz:iconics-core:2.8.1@aar


  •  142
    Elyas replied

    This logs does not help finding the issue , please select the error option in logcat section and copy this log here

    Best Regards DT team.

    NearbyStores iOS => Buy now from envato

    NearbyStores Android => Buy now from envato

    Follow us on Facebook Page => Here