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

2 files found with path 'META-INF/NOTICE.md' #48

Open
black opened this issue Sep 23, 2024 · 6 comments
Open

2 files found with path 'META-INF/NOTICE.md' #48

black opened this issue Sep 23, 2024 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@black
Copy link

black commented Sep 23, 2024

I have just this library to build in my blank Android project and I get the following error upon building

2 files found with path 'META-INF/NOTICE.md'.
Adding a packaging block may help, please refer to
https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/dsl/Packaging
for more information

My Gradle file

namespace = "com.experiment.bletest"
compileSdk = 34

defaultConfig {
    applicationId = "com.experiment.bletest"
    minSdk = 24
    targetSdk = 34
    versionCode = 1
    versionName = "1.0"

    testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
@LeandroSQ
Copy link
Owner

Hello, thank you for opening the issue

Would you be so kind to share the whole project? So I can take a deeper look

Thank you

@black
Copy link
Author

black commented Sep 23, 2024

Hey,
I just created a blank project and added your library and try to build the project. I haven't added anything else. I am using latest Android Studio.

Also, I made it work by adding this to my app gradle

packaging {
        resources {
            excludes += "META-INF/NOTICE.md"
            excludes += "META-INF/LICENSE.md"
        }
    }

But I think there should be a fix directly in the library itself instead of adding the fix manually.

On, a different note: Is there a way to know connection status in the library ?

@LeandroSQ
Copy link
Owner

Got it, I will take a look at this later today. Thank you for sharing the details.

For your other question, in addition to the lifecycle callbacks such as onConnect and onDisconnect. You can also use this.

@LeandroSQ LeandroSQ added help wanted Extra attention is needed question Further information is requested labels Sep 24, 2024
@LeandroSQ
Copy link
Owner

LeandroSQ commented Sep 24, 2024

I changed the packaging exclusion on be282de
Please try 1.9.3 and let me know if it works for you :)

@black
Copy link
Author

black commented Sep 24, 2024

awesome thank you. Let me try that.

@black
Copy link
Author

black commented Oct 7, 2024

Hey Sorry, I was a bit busy. I checked your updated library and it wasn't working. I had to add packaging exclusion in order to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants