Giter VIP home page Giter VIP logo

Comments (8)

kyhule avatar kyhule commented on August 27, 2024 2

I just stumbled upon this https://code.google.com/p/android/issues/detail?id=193679. Looks like there is a bug in the build tools with no workaround. I believe removing your label should fix the problem. I can submit a pull request with the proposed change.

from gandalf.

btkelly avatar btkelly commented on August 27, 2024 2

Feel free to submit a PR, always appreciate the help.

from gandalf.

btkelly avatar btkelly commented on August 27, 2024

Ah, this is a good catch. This is caused by the fact that you have hard coded the label value inside your application block. I will include a fix for this in the next release, in the meantime you can create a string resource like so <string name="app_name">ClinicalKey DEBUG</string> and setting your application label to android:label="@string/app_name".

Great find, thanks for reporting this.

from gandalf.

kyhule avatar kyhule commented on August 27, 2024

The hardcoded value is on in my debug/AndroidManifest.xml. I get the same error when building release which uses a string resource:

Attribute application@label value=(@string/clinicalkey_title) from AndroidManifest.xml:20:9-50
is also present at [com.btkelly:gandalf:1.3.0] AndroidManifest.xml:15:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:15:5-417:19 to override.

from gandalf.

kyhule avatar kyhule commented on August 27, 2024

Seems like the issue is I am using the tools:ignore attribute with the tools:replace and that is the bug in the linked android bug report. Only workaround I have found is removing the tools:ignore attribute.

from gandalf.

btkelly avatar btkelly commented on August 27, 2024

The issue comes from the fact that the label is already defined and cannot be different. If you update your label string resource name to app_name instead of clinicalkey_title for all build types this should resolve the issue. When the merging occurs it will replace the library version of app_name with your version. This is still a work around and I would like to resolve it by removing the label from the lib itself.

from gandalf.

kyhule avatar kyhule commented on August 27, 2024

Ahh, you are right, that did the trick. Thanks! Great work on the library by the way. Working on a prototype to build this into our app and stumbled upon this library. Need to convince the team its worthy of using and hopefully the iOS guys like iOS version as well. Anyway, I am going to submit a PR. Do you think any of that application tag is necessary? Most libraries don't have one at all.

from gandalf.

btkelly avatar btkelly commented on August 27, 2024

Probably not, you can pull everything and just test compilation with the built in example app. If that works fine should be good to go.

from gandalf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.