Error Message: SDK_ERROR_NoLicense

PTV's mobile solution based on off-line maps - standard application and SDK
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Error Message: SDK_ERROR_NoLicense

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
SebastianSchlichting
Posts: 18
Joined: Tue May 28, 2019 10:45 am

Re: Error Message: SDK_ERROR_NoLicense

Post 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.
Post Reply