Deprecated API

mc7 years ago

Hi,

Note: C:\Projects\Java\traccar-client-android\app\src\main\java\org\traccar\client\MixedPositionProvider.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

I installed fresh installation, and first rebuild error got this message above.

Which minimum version of Android OS is suitable to compile ?

Thank You,

Crespi

Anton Tananaev7 years ago

It's not an error. It's a warning that you can safely ignore.

Minimum version of Android is 1.5 (API 3).

mc7 years ago

Hello,

Its not bothers anymore. I tried to compile got:

Error:(48, 47) error: multi-catch statement is not supported in -source 1.6
(use -source 7 or higher to enable multi-catch statement)

I went to EDIT => Project structure and changed to C:\Program Files\Java\jdk1.8.0_112 also not helps too much

Line 48 TrackingService.java creates error 
            try {
                method.invoke(notification, context, context.getString(R.string.app_name), context.getString(R.string.settings_status_on_summary), pendingIntent);
            } catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException e) {
                Log.w(TAG, e);
            }
Anton Tananaev7 years ago

If you have Android Studio and JDK installed and configured properly, it should work without any modifications. You are clearly doing something wrong, but I'm not sure what exactly.