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

Will not compile after including the library #50

Closed
gogoalsoft opened this issue Jan 30, 2018 · 5 comments
Closed

Will not compile after including the library #50

gogoalsoft opened this issue Jan 30, 2018 · 5 comments

Comments

@gogoalsoft
Copy link

After including the library in Android Studio 2.3, targeting SDK 25 by:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.HITGIF:TextFieldBoxes:1.3.8'
}

I got the following error:

Error:(754) Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?

which references a string resource:

%s%s%s%s

I THINK the correct way to do this, is either to set formated=false for this string, or specify in the way: %1$s%2$s%3$s%4$s.

@gogoalsoft
Copy link
Author

Actually, if I include version 1.3.7, the error will go away, but since I am using SDK 25, there are some v26 errors. Does the library require linking to v26? What can I do?

HITGIF added a commit that referenced this issue Jan 30, 2018
@HITGIF
Copy link
Owner

HITGIF commented Jan 30, 2018

Should be fixed now, trycompile 'com.github.HITGIF:TextFieldBoxes:3c9a1115f0'.
What specifically are the v26 errors? Are they affecting the compiling and usage?

@gogoalsoft
Copy link
Author

I think the v26 errors come from the gradle file referencing v27 support and design libraries.
Some static resources must have been included in those and when I'm using sdk 25 those resources are missing. App will not compile as the R file cannot be created.

How do I include them?

@HITGIF
Copy link
Owner

HITGIF commented Jan 31, 2018

What's your compileSdkVersion?
If it's below 27, upgrading it to 27 solves the issue.

@HITGIF
Copy link
Owner

HITGIF commented Jan 31, 2018

The string resource compiling issue is now fixed in release 1.3.9.

@HITGIF HITGIF closed this as completed Jan 31, 2018
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