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

Android no matching toolchains found for types @bazel_tools #34

Closed
kbtxwer opened this issue Apr 23, 2021 · 5 comments
Closed

Android no matching toolchains found for types @bazel_tools #34

kbtxwer opened this issue Apr 23, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@kbtxwer
Copy link

kbtxwer commented Apr 23, 2021

It is ok when I run
bazel build -c opt :encoder_main
or
bazel build -c opt :decoder_main

however, when it comes to build an Android APP, the error occurs.

I'm sure that I have add the path of sdk and ndk to ~/.bashrc and reload it, and I can't unserstand what the bazel is showing about.

/////////////////////////////////////////////
ERROR: While resolving toolchains for target //android_example:lyra_android_example: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type
ERROR: Analysis of target '//android_example:lyra_android_example' failed; build aborted: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type
INFO: Elapsed time: 1.526s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (14 packages loaded, 24 targets configured)
//////////////////////////////////////////////

@kbtxwer
Copy link
Author

kbtxwer commented Apr 23, 2021

image
截图录屏_选择区域_20210424000008

@kbtxwer
Copy link
Author

kbtxwer commented Apr 23, 2021

By the way, can I develop with lyra with IDEA without using bazel?

@kbtxwer
Copy link
Author

kbtxwer commented Apr 23, 2021

Oh mt god , I finally solved the problem, just install bazel for current user and run command without root premission

@aluebs aluebs added the bug Something isn't working label Apr 23, 2021
@aluebs
Copy link
Contributor

aluebs commented Apr 23, 2021

Glad to hear that this got resolved :)

@aluebs aluebs closed this as completed Apr 23, 2021
@tulanglaoli
Copy link

i solved in osx too ,just use to sudo to exec command

Oh mt god , I finally solved the problem, just install bazel for current user and run command without root premission

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants