-2

When I cloned Android's default alarm in Anroid Open Source Project @ https://android.googlesource.com/platform/packages/apps/DeskClock/ and tried to run it on Android Studio I got the following error:

package com.android.datetimepicker.time does not exist

cannot find symbol class TimePickerDialog

cannot find symbol class RadialPickerLayout <anonymous
com.android.deskclock.alarms.TimePickerCompat$TimerPickerPreL$1> is
not abstract and does not override abstract method
processTimeSet(int,int) in OnTimeSetListener

Please help in any way. Thank you.

madu
  • 557
  • 6
  • 14

2 Answers2

1

After a week of frustration, I was able to clone the default alarm app and get rid of the above DateTimePicker errors mentioned above by injecting the dependency to the gradle by:

compile 'com.github.citux:datetimepicker:0.2.0'

Thanks to the good people out there (https://github.com/CiTuX/datetimepicker) who have cloned and distributed as a gradle dependency of the framework used in Android Open Source Project @ https://android.googlesource.com/platform/frameworks/opt/datetimepicker

Hope this will help some who works on cloned Android Open Source Project.

madu
  • 557
  • 6
  • 14
-1

Neither of those classes exist in the Android SDK. There is a TimePickerDialog, as others have noted, in a different package. There is a RadialPickerLayout in the Android source code, and you are welcome to try to use it.

Really, you should be talking to whoever wrote this Android project and asking them where they were planning on getting those classes from.

Here is the main answer

Community
  • 1
  • 1
Chintan Khetiya
  • 15,962
  • 9
  • 47
  • 85
  • 1
    Please don't just copy and paste another user's answer. If you think that post will answer this question, then vote this as a duplicate of that question. You have more than enough rep to cast that vote. – Mike M. Dec 13 '16 at 04:57
  • Yeah Vote for close tag @MikeM. – Chintan Khetiya Dec 13 '16 at 05:17
  • Thanks @ChintanKhetiya for pointing out they doesn't exist in Android SDK itself. That made me explore more inside the Android Source Code Project. I edited the question to add the url of the Android default alarm source code. – madu Dec 14 '16 at 09:21