Results 1 to 3 of 3

Thread: SKMaps Nativescript Error: java.lang.VerifyError on android plugin

  1. #1
    Neuer skobbler
    Join Date
    22.12.2015
    Posts
    3

    SKMaps Nativescript Error: java.lang.VerifyError on android plugin

    I am creating a plugin from SKMaps library http://developer.skobbler.com/getting-started/android, but only get the following error.

    attached is my plugin structure and my include.grade config

    any help will be appreciated




    $ tns debug android --emulator


    Project successfully prepared





    :config phase: createDefaultIncludeFiles


    +found plugins: nativescript-skobbler-sdk





    :config phase: createPluginsConfigFile


    +creating product flavors include.gradle file in configurations folder...





    :config phase: pluginExtend


    +applying configuration from: /Users/erka/Desktop/Workspace/aptest/platforms/android/configurations/include.gradle


    +applying configuration from: /Users/erka/Desktop/Workspace/aptest/platforms/android/configurations/nativescript-skobbler-sdk/include.gradle





    :config phase: copyAarDependencies





    :config phase: addAarDependencies


    reBuild UP-TO-DATE


    reDebugBuild UP-TO-DATE


    :checkDebugManifest


    reReleaseBuild UP-TO-DATE


    repareComAndroidSupportAppcompatV72311Library


    repareComAndroidSupportSupportV42311Library


    repareDebugDependencies


    :compileDebugAidl


    :compileDebugRenderscript


    :generateDebugBuildConfig


    :cleanLocalAarFiles UP-TO-DATE


    :deleteJavaDir UP-TO-DATE


    :ensureMetadataOutDir UP-TO-DATE


    :collectAllJars


    :isMetadataGenerationNecessary


    :buildMetadata


    Skip com.skobbler.ngx.SKCategories$SKPOICategory


    Error: java.lang.VerifyError: Expecting a stackmap frame at branch target 36


    Exception Details:


    Location:


    com/skobbler/ngx/SKCategories$SKPOICategory.forInt(I)Lcom/skobbler/ngx/SKCategories$SKPOICategory; @11: if_icmpge


    Reason:


    Expected stackmap frame at this location.


    Bytecode:


    0x0000000: b802 2f59 4cbe 3d03 3e1d 1ca2 0019 2b1d


    0x0000010: 3259 3a04 b402 2b1a a000 0619 04b0 8403


    0x0000020: 01a7 ffe8 b202 21b0





    Skip com.skobbler.ngx.SKCategories$SKPOIMainCategory


    Error: java.lang.VerifyError: Expecting a stackmap frame at branch target 36


    Exception Details:


    Location:


    com/skobbler/ngx/SKCategories$SKPOIMainCategory.forInt(I)Lcom/skobbler/ngx/SKCategories$SKPOIMainCategory; 11: if_icmpge


    Reason:


    Expected stackmap frame at this location.


    Bytecode:


    0x0000000: b800 1e59 4cbe 3d03 3e1d 1ca2 0019 2b1d


    0x0000010: 3259 3a04 b400 1a1a a000 0619 04b0 8403


    0x0000020: 01a7 ffe8 bb00 0f59 bb00 1059 1201 b700


    0x0000030: 221a b600 23b6 0024 b700 21bf


    ...


    copyMetadata

    :generateDebugAssets UP-TO-DATE

    :mergeDebugAssets

    :generateDebugResValues UP-TO-DATE

    :generateDebugResources

    :mergeDebugResources

    rocessDebugManifest

    rocessDebugResources

    :generateDebugSources

    rocessDebugJavaRes UP-TO-DATE

    :compileDebugJavaWithJavac

    :compileDebugNdk UP-TO-DATE

    :compileDebugSources

    reDexDebug

    :dexDebug

    :validateDebugSigning

    ackageDebug

    :zipalignDebug

    :assembleDebug

    :deleteExplodedAarFolder

    :buildapk



    BUILD SUCCESSFUL
    Attached Images Attached Images

  2. #2
    Neuer skobbler
    Join Date
    22.12.2015
    Posts
    3
    Resolved, need to modify build.grade to avoid verification

    task buildMetadata (type: JavaExec) {
    description "builds metadata with provided jar dependencies"
    outputs.upToDateWhen {
    !isMetadataGenerationNecessary.didWork
    }

    jvmArgs('-noverify')

    doFirst {
    workingDir "build-tools"

    main "-jar"

    args metadataParams.toArray()
    }
    }

  3. #3
    Neuer skobbler
    Join Date
    02.05.2016
    Posts
    1
    attached is my plugin structure and my include.grade config????
    lol

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •