heremaps / here-android-sdk-examples

Java-based projects using the HERE SDK for Android.
Apache License 2.0
145 stars 191 forks source link

Route Manager Class Not found in Freemium Sdk #159

Closed shruti-techindustan closed 5 years ago

shruti-techindustan commented 5 years ago

Hi I am using Freemium SDK and wants to draw the route in android. But Route Manager Class not found

Thanks Please help me.

starand commented 5 years ago

Hi @Shruti-Mahajan

RouteManager class was deprecated and removed from SDK. Please use CoreRouter class instead. See sample app on GitHub - https://github.com/heremaps/here-android-sdk-examples/tree/master/routing Please take a look on Developer's Guide as well.

BR

shruti-techindustan commented 5 years ago

Thanks For reply I have also used Core Router class I am able to import CoreRouter class in the project. When I compiled the project in android studio I found issues error: cannot find symbol class core router

starand commented 5 years ago

Did you try to compile github sample? Did you copy HERE-sdk.aar into app/libs/ folder? Which version of Android Studio do you use?

shruti-techindustan commented 5 years ago

3.1.3 version Yes, I have compiled GitHub sample it also giving me same error in GitHub sample.

starand commented 5 years ago

Could you please run "./gradlew assemble" command under routing folder and provide output? Thank you!

shruti-techindustan commented 5 years ago

new Router.Listener<List, RoutingError>() { ^ /home/shruti/Downloads/here-android-sdk-examples-master/routing/app/src/main/java/com/here/android/example/routing/MapFragmentView.java:192: error: cannot find symbol new Router.Listener<List, RoutingError>() { ^ symbol: class RoutingError location: class MapFragmentView

Showing Error

starand commented 5 years ago

Looks like you are missing import RoutingError class. Please see whether you have 'import com.here.android.mpa.routing.RoutingError;' at line 34 or add it.

shruti-techindustan commented 5 years ago

I already have imported all the classes. and I am able to views all the routing classes But when I compile my code It gives errror not found router manager class

starand commented 5 years ago

@Shruti-Mahajan, do you use Starter SDK aar or Premium?

shruti-techindustan commented 5 years ago

I used starter sdk

starand commented 5 years ago

Ok, Starter SDK does have RouteManager (and does not have CoreRouter). Therefore you cannot build routing sample with Starter SDK. But there is SimpleRoutingSolution sample delivered with Starter SDK package. Please try to build it.

shruti-techindustan commented 5 years ago

ok Thanks

shruti-techindustan commented 5 years ago

Can you provide me any link for Simple Routing Sample

starand commented 5 years ago

@Shruti-Mahajan,

There is no such github sample app. But it is packed into the same archive as HERE-sdk.aar (you download it from developer portal).

shruti-techindustan commented 5 years ago

okay, Thanks