-
Notifications
You must be signed in to change notification settings - Fork 4k
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
ConstraintLayout not available under @androidsdk// #2830
Comments
What is the output of I'm not sure exactly where Gradle is getting this library from, but I don't think that $ANDROID_HOME/extras/android/m2repository/com/android/support/constraint is in the public android sdk |
Ah, I see the issue. The constraint library is stored in
There appears to be nothing else in that I installed the feature via Android Studio's SDK manager and did not manually edit anything in my SDK directory. |
Hmm, I wonder why the Android SDK did that. If you want to get unblocked, I see three workarounds:
I'll try to add this new path to this list of places that android_sdk_repository looks for the next Bazel release. |
Ok, so it turns out that, due to what I'm attempting to build, I require the bazel build to work. So I might as well attempt to fix this locally. @aj-michael, I wanted to ask you about option three. I looked at the code you mentioned but noticed that the map already includes |
Hey @polaroidkidd, I fixed this issue 12 months ago in commit b9a2e9d which is why you see that entry in the list. So if you have a recent bazel release, you should be fine. However, in the time since this issue was filed, google has actually stopped shipping the newest support libraries inside of the Android SDK. Instead you have to get them from the Google Maven repository. If you want to use the newest constraintlayout, I suggest that you check out https://github.com/aj-michael/gmaven_rules |
Thank you for your timely reply and support. Much appreciated! |
…repositories. Fixes bazelbuild/bazel#2830 RELNOTES: None PiperOrigin-RevId: 153367521
Description of the problem / feature request / question:
Using WORKSPACE:
bazel query @androidsdk//... | grep constraint
gives no results. I do have the constraint layout support installed via SDK manager and I can access constraint layout features in Gradle builds usingcompile 'com.android.support.constraint:constraint-layout:1.0.1'
.Expected:
@androidsdk//com.android.support.constraint:constraint-layout-1.0.1
resolves to the locally-installed constraint layout support.If possible, provide a minimal example to reproduce the problem:
bazel query @androidsdk//... | grep constraint
after installing constraint layout support in your Android SDK should return at least one result.Environment info
bazel info release
): release 0.4.5-homebrewHave you found anything relevant by searching the web?
No. I did submit a question on StackOverflow but have not gotten any responses.
Anything else, information or logs or outputs that would be helpful?
Please let me know if there's anything relevant I can provide.
The text was updated successfully, but these errors were encountered: