-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android" #15
Comments
It opens properly for me on several machines. Do you have an NDK properly installed and setup? |
It should be. I have no idea what the problem is here, we don't even support the MIPS ABI (and it's not part of the NDK anymore I believe). |
Is it possible that it's because I'm using Windows OS? |
Those have nothing to do with MIPS so I doubt they're related. BTW did you follow the other instructions in the README and built the native libraries with cmake already? These are necessary before you can build the AAR. |
I had the same problem (a very unexpected "No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android") when I opened an old project, and fixed it by updating some build settings:
|
@romainguy You are correct. I was sure it's just NDK that's needed. Seems it's a lot more. |
Find your own local android-sdk, if you download the relevant sdk of ndk, there will be a folder called "ndk-bundle" There is a folder called "toolchains" inside. We noticed that there are no mips64el related files inside. The solution is as follows: Click here to download the NDK package separately through the browser. |
@romainguy Seems "mips64el-linux-android" is missing because it got deprecated: https://developer.android.com/ndk/guides/abis#sa
Please avoid using unsupported architectures. @stark25795 The latest version doesn't have it, because of what I wrote above: |
That's why we don't support MIPS, because it's been deprecated/removed from the NDK |
@romainguy So... please remove it from the sample too :) |
It's not in the samples. |
So how did I get this error (look at first post) ? |
@AndroidDeveloperLB It seems like the old version of android gradle plugin(<3.3.+) was trying to access mips toolchain without checking if it exists. Upgrade the plugin version to 3.3-alpha may adopt to your r18-rc NDK toolchains(as @banshee posted). |
So it's a relatively new issue |
for me, upgrade the Android Gradle plugin version to 3.1.3+ works. |
@stark25795 it works for me |
@chris118 What worked? Which sample worked for you? |
For me, just remove tick NUK in SDL tools resolved the problem... |
@AndroidDeveloperLB, I had the same problem with another project. I followed the instructions from Android Plugin for Gradle release notes; you may try to change your Project Structure settings as (check bold for the changes):
I resync'ed Gradle then rebuilt the project successfully. In time, here are my Android Studio details:
EDIT: If prompted to upgrade Gradle, click Upgrade button. |
On which sample?
Thing is, it points to a correct place, so it should be fine... |
@AndroidDeveloperLB You need a |
@romainguy It doesn't let me open the project as one with all 3 samples with Also, I think the samples don't use this, no? Should use the gradle repository instead, no? I now tried to open each of them separately, and it still doesn't help. Tells me "module not specified", but I can't even choose the module : |
|
@romainguy Copy it? Copy it to where? |
Copy that file inside the filament-android directory. |
I tried lots of peoples answers and ended up sorting it myself after long searching. |
even though I compile it on ubuntu 1604 ,it still report that problem! |
Worst argument I have ever seen to close an issue |
This comment was from the original reporter. Also note that most of the comments here have nothing to do with this project. |
hi tried fix some problem for this error if someone try it i commit it and tell me if it is working and for the record uninstall the ndk dose the job ask of u for some update |
I still got an issue with this. It says:
However, all folders are actually positioned fine: How come? |
If your old project didn't use NDK, just remove it from Android SDK Manager and reopen your project again. It work for me. |
@kjanard Which old project? I just cloned the repository here, and wanted to try out one of the samples (the triangle in this case). |
@AndroidDeveloperLB Sorry, my mistake. I didn't read an issue carefully and clearly. Your post just popped up when I search about non-ndk project. |
I encountered this issue with generated project files from cocos2dx. Here's what worked for me
|
its worked! thanks |
Thanks @petru-sabadac :) It worked for me with similar steps in Windows 10 as follows. Android Studio 3.2.1 Right click the "Start Icon" of Windows 10 and select "Command Prompt (Admin)", and then mklink /D mips64el-linux-android aarch64-linux-android-4.9 |
hi remove ndk show the sdk folder for this project and i put commit for
this that work for me try it out and let me know if it works
…On Sat, Nov 17, 2018 at 3:29 AM jwu92610 ***@***.***> wrote:
Thanks @petru-sabadac <https://github.com/petru-sabadac> :) It worked for
me with similar steps in Windows 10 as follows.
Android Studio 3.2.1
Build #AI-181.5540.7.32.5056338, built on October 8, 2018
JRE: 1.8.0_152-release-1136-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Right click the "Start Icon" of Windows 10 and select "Command Prompt
(Admin)", and then
mklink /D mips64el-linux-android aarch64-linux-android-4.9
mklink /D mipsel-linux-android arm-linux-androideabi-4.9
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AjWUTxZMKL1gTIhe_qhnW-C1ZolE3uszks5uv1F0gaJpZM4Vvjfi>
.
|
I just unchecked the NDK from SDK Tools and it worked for me... I think there is no need yet for NDK. |
there is if you design games. |
i face same problem then i upgrade gradle version 3.0.1 to classpath 'com.android.tools.build:gradle:3.2.1' it work for me.. |
The issue can be resolved by downloading an older version of the NDK (14b) and going to Android Studio to File | Project Structure and selecting it. |
This thread just keeps growing and growing and the issue is completely unrelated to the project it's in. There are obviously multiple solutions to get rid of the error, but there is one fix that does not involve downloading or copying anything that can be seen by scrolling up to #15 (comment) I wish there was a way to "pin" a comment and/or prevent people from commenting "me too"... Maybe this thread should be closed with a final conclusion? |
i haved the same problem in cordova. You need to edit the gradle version to the latest in this files.
In build.gradle find this part of the code. In GradleBuilder.js find this part of the code. In StudioBuilder.js find this part of the code. |
Nothing here worked for me, but here are the steps I followed to fix it on my end (while trying to build the SimpleCalc project from Codelabs):
Then, Build > Make Project. If all went well, this should work for you. |
I'm still facing same issue since a long time. |
Notice the file
So, i can say, using Android SDK's Gradle plugin above 3.0.1, or create even a directory marked with 'mipsel' and 'mips64el', can both resolve the problem. The latter method is below. cd <path-to-ndk>
OS_=$(uname -s | tr [A-Z] [a-z])
mkdir -p toolchains/mipsel-linux-android-4.9/prebuilt/${OS_}-x86_64
touch toolchains/mipsel-linux-android-4.9/prebuilt/${OS_}-x86_64/NOTICE-MIPS
mkdir -p toolchains/mips64el-linux-android-4.9/prebuilt/${OS_}-x86_64
touch toolchains/mips64el-linux-android-4.9/prebuilt/${OS_}-x86_64/NOTICE-MIPS64 |
buildscript {
} ============= Above code worked for me =============== |
I just wanted to try out the sample, but I got this error:
The text was updated successfully, but these errors were encountered: