Page 1 of 1

Error Message: SDK_ERROR_NoLicense

Posted: Thu Jul 01, 2021 8:30 am
by Bernd Welter
Hi Sebastian,

one of our partners received the error message "Message: SDK_ERROR_NoLicense" when he applied the following source. Obviously a simple licensing issue. How is he supposed to resolve this?

Code: Select all

try {
            NavigationSDK.initialize(
                    PtvAssets.mapDir,
                    "DEU",
                    PtvAssets.addrDir,
                    PtvAssets.dataDir
            )            GPSManager.getInstance().openGPSDevice(false)
        } catch(e: NavigationException) {
            startupException = e
            Log.e(tag, "Encountered exception", e)
            return
        }
The logs confirm this:
2021-06-30 09:16:28.698 17519-17519/XXXX: Encountered exception
com.ptvag.navigation.sdk.NavigationException: Code: -53
Message: SDK_ERROR_NoLicense
API Version : 11.0 (NC 31000)
Build Date : Jul 10 2020:02:42:48
OS : android
Compiler : clang 8.0.7 (arm64) at com.ptvag.navigation.sdk.NavigationSDK.initializeJNI(Native Method)
at com.ptvag.navigation.sdk.NavigationSDK.initialize(NavigationSDK.java:103)
at com.ptvag.navigation.sdk.NavigationSDK.initialize(NavigationSDK.java:147)
at pl.softprojekt.fp4mtransport.infrastructure.MainApplication.onCreate(MainApplication.kt:52)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)
at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7184)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7134)
at android.app.ActivityThread.access$1600(ActivityThread.java:274)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Bernd

Re: Error Message: SDK_ERROR_NoLicense

Posted: Thu Jul 01, 2021 3:28 pm
by SebastianSchlichting
How a license.key file is used, is described in the first chapter of the tutorial:
http://navigator.ptvgroup.com/DE/sdk/tu ... ial01.html

A valid test license file can be requested by contacting sales.