Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #164

Closed
geeta4 opened this issue Oct 4, 2021 · 5 comments
Closed

Installation Error #164

geeta4 opened this issue Oct 4, 2021 · 5 comments

Comments

@geeta4
Copy link

geeta4 commented Oct 4, 2021

merge the PR so that library can be used

@1gravity
Copy link
Owner

1gravity commented Oct 7, 2021

This is already fixed

@1gravity 1gravity closed this as completed Oct 7, 2021
@geeta4
Copy link
Author

geeta4 commented Oct 7, 2021 via email

@1gravity
Copy link
Owner

1gravity commented Oct 7, 2021

Can you be more specific? works for me

@geeta4
Copy link
Author

geeta4 commented Oct 7, 2021 via email

@1gravity
Copy link
Owner

1gravity commented Oct 7, 2021

Except it wasn't solved. The package name / applicationId is not accessible in a library project (how could it, a library is compiled before the application is). The editor library is published to Maven Central without any reference to an app so the authorities must be static in the manifest (and dynamic in the code). Please follow the readme that shows you how to override the authorities property in your app manifest (once you've updated to the latest version 1.7.2).

<provider
    android:name="androidx.core.content.FileProvider"
    tools:replace="android:authorities"
    android:authorities="${applicationId}.provider"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants