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

Unable to build with Android Studio 2023.1.1.28 #252

Closed jahway603 closed 8 months ago

jahway603 commented 9 months ago

I followed the README's Building Section, but am still unable to build this using Android Studio 2023.1.1.28.

I receive the following errors:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not resolve project :cert4android.
     Required by:
         project :app
      > No matching configuration of project :cert4android was found. The consumer was configured to find a component for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.
   > Could not resolve project :ical4android.
     Required by:
         project :app
      > No matching configuration of project :ical4android was found. The consumer was configured to find a component for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.
   > Could not resolve project :vcard4android.
     Required by:
         project :app
      > No matching configuration of project :vcard4android was found. The consumer was configured to find a component for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

When I run the command which I believe should be pulling the above "missing" submodules, it does not change anything.

$ git pull --rebase --recurse-submodules
Already up to date.

Specifically I am looking to test this branch in my EteSync fork, https://github.com/jahway603/etesync-android/tree/Fix-no-permission-to-import-from-file, to potentially resolve Issue https://github.com/etesync/android/issues/249 and Issue https://github.com/etesync/android/issues/199 before submitting a PR with the changes. Any help would be appreciated.

jahway603 commented 8 months ago

Closing as was able to get this to build. The build instructions are not very clear.