Skip to content Skip to sidebar Skip to footer

The Import Com.android.datetimepicker Cannot Be Resolved

I've imported an existing Android project to Eclipse, but I'm getting errors on the following imports: import com.android.datetimepicker.time.RadialPickerLayout; import com.android

Solution 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.

Solution 2:

If you have added the datetimepicker library where you have the package com.android.datetimepicker palced, please add the following to main project's build.gradle dependencies section:

compile project(':library')

This worked for me. Please let me know your comments.

Post a Comment for "The Import Com.android.datetimepicker Cannot Be Resolved"