-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Build Android on Windows: Bazel_tools//src/main/native/windows:windows_jni.dll' failed (Exit -1) #6187
Comments
Have you installed Build Tools for VS 2017? https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 https://docs.bazel.build/versions/master/windows.html#using-bazel-on-windows-1 |
@jin
I install BAZEL_VS and BAZEL_VC in system varibales BAZEL_VC = D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC |
@laszlocsomor, have you seen this error before? |
@Kadanza : what's the build command you are running? Could you build with |
@laszlocsomor I just press "Sync project with BUILD file" button in android studio from Bazel Plugin |
@Kadanza : Could you add the line
|
Error here. I think need update MSVC. D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include\yvals_core.h(298): fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.15 or newer. |
I don't understand how update MSVC. I download yesterday last version Microsoft Visual Studio |
/cc @meteorcloudy |
@Kadanza I'll try to install VC 2017 to verify this issue. We don't have tests with VC 2017 on CI, so it might be somehow broken with Bazel. In the meantime, can you try uninstall VC 2017 and try with VC 2015? |
@meteorcloudy |
@meteorcloudy
|
Hmm, that looks like an issue with Python3.5: Is it possible for you to use a lower version of Python? But we should fix the script to make it work with Python3.5. @jin And I'm not sure |
Yes, the error |
For example:
|
I install python 2.7, remove python 3. Add python to PATH. Reload windows. And got new error on sync.
|
Ah, now it's a long path issue.
Here's a command to do that:
|
Now sync and mobile-install work ! For java it works fine. When I use bazel_rules_kotlin and kt_android_library I got error
|
hm.. @hsyed, does the error in #6187 (comment) look familiar, based on #4586 (comment) ? |
@Kadanza : the MANIFEST file ( Please run this:
and paste the output here. |
@laszlocsomor Windows is not yet fully supported -- I got all the builder tests passing but these tests run in a mocked testbench. This issue occurs in the wireup of the builder. This code was written without windows in mind and the bazel runfiles libraries were not available. If I remember correctly I did have After this a few more things need to be addressed for windows support but it's better discussed in the thread in kotlin_rules. For brevity the issues are:
|
@hsyed Thanks for trying to make rules_kotlin work on Windows. Adding some related information here
|
I have thought about replacing |
Looks like this issue (Windows long path problem) is resolved, and things are WAI. If there are issues using mobile-install, please create a new issue. |
Description of the problem :
I have Bazel Android project for Windows. When I open and try to sync project I got error. On mac this step works normal.
Log
ERROR:
What operating system are you running Bazel on?
Windows 7
What's the output of
bazel info release
?0.17.1
The text was updated successfully, but these errors were encountered: