Home » Android » android – Error while running Calendar project

android – Error while running Calendar project

Posted by: admin June 15, 2020 Leave a comment

Questions:

I have downloaded calendar project from https://github.com/android/platform_packages_apps_calendar and now I’m trying to run that project. I imported the project to eclipse via new --> Android project from existing source, it imported successfully but I’m getting a red exclamation mark in project, like this:

enter image description here

When I went to properties > Android I’m seeing this:

enter image description here

It looks like the project is using some libraries but is not able to find in the workspace. How can I fix this?

How to&Answers:

You may to add the following dependencies as well.

https://android.googlesource.com/platform/frameworks/ex/

https://android.googlesource.com/platform/frameworks/opt/colorpicker/

https://android.googlesource.com/platform/frameworks/opt/calendar/

https://android.googlesource.com/platform/frameworks/opt/datetimepicker/

https://android.googlesource.com/platform/frameworks/opt/timezonepicker/

Answer:

I was able to build the AOSP Android calendar.

Ye Lin Aung give you almost all the neccesary, but you will need also “chips” library. This library is not included in the last master aosp necessary packages , but its in their repository in the old versions.

You can find the neccesary libraries in the next repository:

https://gitlab.com/Purcallas/AOSPCalendarExtensions/tree/master

Or in the Google repository (as say Ye) you can find chips and common values:
https://android.googlesource.com/platform/frameworks/ex/+/ics-mr1

Answer:

remove all the library from here and import each and every one in your project workspace and then after add the library.