etesync / android

EteSync - Secure, end-to-end encrypted, and privacy respecting sync for your contacts, calendars and tasks.
https://www.etesync.com
GNU General Public License v3.0
305 stars 34 forks source link

Compilation error: cannot find symbol ServiceEntity #188

Closed intentionally-left-nil closed 2 years ago

intentionally-left-nil commented 3 years ago

I followed the README steps and cloned the repo & its submodules. When trying to build the app (either with the UI or with gradelw) it fails to compile:

Android Studio Arctic Fox | 2020.3.1
Build #AI-203.7717.56.2031.7583922, built on July 26, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.13.9-200.fc34.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin, org.intellij.plugins.markdown
Current Desktop: KDE
> Task :app:kaptDebugKotlin
/home/anil/projects/etesync-android/app/src/main/java/com/etesync/syncadapter/model/JournalModel.java:73: error: cannot find symbol
        public static List<JournalEntity> getJournals(MyEntityDataStore data, ServiceEntity serviceEntity) {
                                                                              ^
  symbol:   class ServiceEntity
  location: class Journal/home/anil/projects/etesync-android/app/src/main/java/com/etesync/syncadapter/model/JournalModel.java:73: error: cannot find symbol
        public static List<JournalEntity> getJournals(MyEntityDataStore data, ServiceEntity serviceEntity) {
                           ^
  symbol:   class JournalEntity
  location: class Journal/home/anil/projects/etesync-android/app/src/main/java/com/etesync/syncadapter/model/JournalModel.java:82: error: cannot find symbol
        public static JournalEntity fetch(MyEntityDataStore data, ServiceEntity serviceEntity, String uid) {
                                                                  ^
  symbol:   class ServiceEntity
  location: class Journal/home/anil/projects/etesync-android/app/src/main/java/com/etesync/syncadapter/model/JournalModel.java:82: error: cannot find symbol
        public static JournalEntity fetch(MyEntityDataStore data, ServiceEntity serviceEntity, String uid) {
                      ^
  symbol:   class JournalEntity
  location: class Journal/home/anil/projects/etesync-android/app/src/main/java/com/etesync/syncadapter/model/JournalModel.java:91: error: cannot find symbol
        public static JournalEntity fetchOrCreate(MyEntityDataStore data, CollectionInfo collection) {
                      ^
  symbol:   class JournalEntity
  location: class Journal/home/anil/projects/etesync-android/app/src/main/java/com/etesync/syncadapter/model/JournalModel.java:150: error: cannot find symbol
        public static ServiceEntity fetchOrCreate(MyEntityDataStore data, String account, CollectionInfo.Type type) {
                      ^
  symbol:   class ServiceEntity
  location: class Service
intentionally-left-nil commented 2 years ago

ping cc @tasn I'm still unable to compile the project

intentionally-left-nil commented 2 years ago

Figured it out: Needed to change the gradle settings to use Java 8 to compile the app, not JDK 11

tasn commented 2 years ago

Oh sorry, I missed it! Great to see you solved it. Anything we should update in the repo? It builds on f-droid so I assume it's OK in general.