Horizontal-org / Tella-Android

The Android version of our app Tella. Tella is a mobile app designed to protect human rights defenders, advocates, and journalists by encrypting and hiding their sensitive data and safely uploading it to their organization's server.
https://tella-app.org/
Apache License 2.0
57 stars 18 forks source link

error in sync project #313

Open Rezalatifi opened 1 month ago

Rezalatifi commented 1 month ago

Expected behavior

Actual behavior

Steps to reproduce the problem

1.why failed resolve: com.simplify:ink:1.0.2 in sync this project?? Thank you 1. 1.

Additional information

ahlem-jarrar commented 2 weeks ago

Can you please provide us your Android Studio version and Gradle version?

n8fr8 commented 2 weeks ago

We are experiencing the same issue, and others as well, when trying to do a clean checkout and build.

A number of libraries are no longer available as they were on jcenter which has been shutdown.

We have been able to make some small changes to fix these, finding alternate releases that are compatible, including:

diff --git a/build.gradle b/build.gradle index 72adbe1a..8db12e66 100644 --- a/build.gradle +++ b/build.gradle @@ -55,7 +55,7 @@ buildscript { versions.cameraview = '2.7.2' versions.exifinterface = '1.3.3' versions.simplifyInk = '1.0.2'

n8fr8 commented 2 weeks ago

com.github.nak5ive:ink-android:1.0.3 is a fork of the original simplify ink library

com.github.permissions-dispatcher is a version of the org.permissionsdispatcher that is available via jitpack

n8fr8 commented 2 weeks ago

There also seem to be missing resources:

FAILURE: Build failed with an exception.

n8fr8 commented 2 weeks ago

We've committed are fixes so far to here: https://github.com/guardianproject/Tella-Android/tree/develop

however, there are more (this is all within the "develop" branch), that are a bit beyond what we can just create:

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/change_camouflage_layout.xml:2: AAPT: error: resource color/wa_purple (aka org.hzontal.shared_ui:color/wa_purple) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/enter_string_bottomsheet_layout.xml:2: AAPT: error: resource color/wa_purple (aka org.hzontal.shared_ui:color/wa_purple) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/keyboard_view.xml:105: AAPT: error: resource drawable/delete_bg (aka org.hzontal.shared_ui:drawable/delete_bg) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/layout_bottom_message.xml:2: AAPT: error: resource style/DialogBottomPopUpBackground (aka org.hzontal.shared_ui:style/DialogBottomPopUpBackground) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/submit_parts_list_item.xml:9: AAPT: error: resource dimen/activity_vertical_margin (aka org.hzontal.shared_ui:dimen/activity_vertical_margin) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/submit_parts_list_item.xml:16: AAPT: error: resource drawable/light_rounded_background_48 (aka org.hzontal.shared_ui:drawable/light_rounded_background_48) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/submit_parts_list_item.xml:34: AAPT: error: resource drawable/light_rounded_background_48 (aka org.hzontal.shared_ui:drawable/light_rounded_background_48) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/submit_parts_list_item.xml:98: AAPT: error: resource drawable/ic_check_circle_green (aka org.hzontal.shared_ui:drawable/ic_check_circle_green) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/submited_list_item.xml:26: AAPT: error: resource drawable/ic_check_circle_green (aka org.hzontal.shared_ui:drawable/ic_check_circle_green) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/submited_list_item.xml:38: AAPT: error: resource string/action_open_bottom_sheet (aka org.hzontal.shared_ui:string/action_open_bottom_sheet) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/vault_actions_sheet_layout.xml:53: AAPT: error: resource drawable/crop_rotate (aka org.hzontal.shared_ui:drawable/crop_rotate) not found.

 ERROR:/Volumes/minimi/dev/repos/Tella-Android/shared-ui/build/intermediates/merged_res/release/layout/view_delete_menu_sheet_layout.xml:28: AAPT: error: resource drawable/ic_delete_white_24dp (aka org.hzontal.shared_ui:drawable/ic_delete_white_24dp) not found.
Rezalatifi commented 1 week ago

Can you please provide us your Android Studio version and Gradle version?

Thank you, the error solved by adding relevan repository.

ahlem-jarrar commented 6 days ago

Thank you, @Rezalatifi! I just saw the fork, and it looks like the problem has been resolved on your end.

ahlem-jarrar commented 6 days ago

@n8fr8 Perhaps you could reach out to us for a call if the issue isn't fully resolved, or if you have any further questions?

n8fr8 commented 6 days ago

@n8fr8 Perhaps you could reach out to us for a call if the issue isn't fully resolved, or if you have any further questions?

Okay. Have you made any changes in your develop or main branches to address this? Can you reproduce the problem on your side?

ahlem-jarrar commented 6 days ago

@n8fr8 yes we were able to reproduce the problem we will push the changes on both master and develop.

ahlem-jarrar commented 6 days ago

@n8fr8 This PR aims to resolve all related build issues. Please ensure you generate your own google-services.json file and add it to the project for successful integration. The PR is currently under review and is expected to be merged by tomorrow. Feel free to reach out if you need any further assistance.

Link to PR