简体   繁体   中英

How to switch from starter to premium Here SDK for android

I was using Here sdk but i decided going for premium SDK i did all the necessary steps ie License Key,App Code,App Id ,replacing starter with premium .aar file ,checking the package name (if its different),adding dependencies in gradle and when i tried using some class ie CoreRouter or AroundRequest i am unable to call the class. I checked all the steps for the setup of SDK's i didn't missed any.Did anyone got similar issue like this one? Can someone help me out here ? Thanks in Advance.

Update:

I created new project and started working on it but when i implemented some class of here sdk's it throws error while compiling :

- cannot find symbol class
- package doesn't exist
- incompatibility types

in Document it is said to use these classes yet they are not present in sdk ..did anyone faced this issue?..any help would be appreciated..Thanks in advance..

refer the screenshot for errors

Refer the Screenshot there is no class present of CoreRouter,RouterWaypoint,Routing error

Check if you are using the right sdk. One way to check if your sdk supports the classes you require is to open /sdk/HERE-sdk/libs/docs/mapsdoc-hybridplus/index.html and search for your class. If it is available then definitely you should be able to use it. Check your gradle properties to see if you included the Here-sdk like below:

dependencies {
    implementation fileTree(dir: 'libs', include: ['HERE-sdk.aar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    compile 'com.google.code.gson:gson:2.8.0'
}

Don't know what was the problem yet.One solution fixed the issue ... what i did was deleted the .aar file from project libs file, removed Here dependencies lastly rebuild the project. Now i again pasted the .aar file added the here dependencies and did project rebuild and clean project.Then it started working all classes were imported successfuly, it was a suprise for me tho..Hope this resolution helps for someone who got similar problem. Thankyou!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM