PDA

View Full Version : SKMaps Nativescript Error: java.lang.VerifyError on android plugin



baromir
22.12.2015, 02:46
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

http://forum.skobbler.com/attachment.php?attachmentid=2352&stc=1




$ 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

baromir
26.12.2015, 19:01
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()
}
}

EdnaHall
02.05.2016, 12:28
attached is my plugin structure and my include.grade config????