aarch64-linux-android-strip fayli yo'q

Men Android studiyasini 2.3 da yangilayman va mening loyihamda bu xatolar bor

Error:org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'C:\Users\...\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip''


Error:net.rubygrapefruit.platform.NativeException: Could not start 'C:\Users\...\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip'


Error:java.io.IOException: Cannot run program "C:\Users\...\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip" (in directory "E:\projectNmame\app"): CreateProcess error=2, The system cannot find the file specified

Har qanday jism meni tuzatishga yordam beradimi?

oldindan rahmat

48
Bitrise'dagi ushbu xato bilan shug'ullana boshladim va men uni holda NDK holda stackni o'zgartirish orqali hal qildim. Yig'ma konfiguratsiyasi quay.io/bitriseio/android edi. Umid qilamanki, kimdir yordam beradi!
qo'shib qo'ydi muallif Joshua Pinter, manba

8 javoblar

Android Studio 3.1.2 va IDE taklif qilingan yangilanishlarni ma'qullaganimdan so'ng Keyingi xatolar oldim:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task '...'.

Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/Users/.../Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip'

Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/Users/.../Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip'

Caused by: java.io.IOException: Cannot run program "/Users/.../Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip" (in directory "/Users/.../.../.../app"): error=2, No such file or directory

Caused by: java.io.IOException: error=2, No such file or directory

NDK versiyasi 17.0.4754217 bilan bog'liq muammoga o'xshaydi.

Men uchun loyihada ndk komponentlarini ishlatmagani uchun hal bo'ldi SDK menejeridan NDK'ni olib tashlash .

Go to SDK Manager -> SDK Tools tab -> uncheck NDK -> Apply.

enter image description here

78
qo'shib qo'ydi
Juda ko'p rahmat, @CookieMonster, javobingiz mening kunimni saqlab qoldi.
qo'shib qo'ydi muallif Thirumalvalavan, manba
Bu men uchun ishladi, lekin xudo bundan keyin mahalliy kodni qurishim shart. Qanday qilib Google bunday narsalarni tez-tez takrorlaydi? "Barqaror ozod", nima bo'lishidan qat'i nazar.
qo'shib qo'ydi muallif AutonomousApps, manba
rahmat .. Mening muammom hal qilindi
qo'shib qo'ydi muallif Bhavesh Vadalia, manba
Menga loyihani OpenCV lib bilan integratsiyalashgan holda ishga tushirishga yordam berdim (Android Studio 3.1.2-ga yangilashdan oldin u muammosiz ishlaydi), ammo bu vaqtinchalik hal qiluvchi yechim. Ushbu muammo biroz NDK r17 da mits, mips64, armeabi deprecation bilan bog'liq bo'lishi mumkin: developer.android .com/ndk/qo'llanmalar/abis # so
qo'shib qo'ydi muallif yaroslav, manba

NDK versiyasi 17.0.4754217 yYokidamida bir xil muammolarga duch kelganman. Gradle.build dasturida quyidagi kodni qo'shib, bu muammoni hal qila olasiz:

packagingOptions{
    doNotStrip '*/mips/*.so'
}

Yoki

packagingOptions{
    doNotStrip '*/mips/*.so'
    doNotStrip '*/mips64/*.so'
}

Mahalliy koddan foydalansangiz (C ++), men quyidagi kodni qo'shishni tavsiya etaman:

ndk {
    abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'//<- only the suppYokited ones
}

MIPS ikkitomonlama joylashtirishga ishonch hosil qilish uchun.

66
qo'shib qo'ydi
Bu men uchun ishladi. Rahmat
qo'shib qo'ydi muallif Anas Azeem, manba
Bu bir xil muammo emas, lekin shunga o'xshash. Siz MIPS ikkiliklarini yo'qotib qo'ydingiz (qasddan r17 ga tushirilgan, masalan, github.com/android-ndk/ndk/issues/700 ), OP tomonidan bildirilgan ARM64 emas.
qo'shib qo'ydi muallif Alex Cohn, manba
mening kunimni qutqargan odam.
qo'shib qo'ydi muallif Chandrani Chatterjee, manba
Thanks a lot Buddy :)
qo'shib qo'ydi muallif Hanry, manba
Kichik tuzatish - android yopilishida va build.gradle-ning har qanday joyida emas, balki qo'shilishi kerak
qo'shib qo'ydi muallif brkeyal, manba
Bu men uchun ham ishlagan, ko'p rahmat.
qo'shib qo'ydi muallif HeartlessArchangel, manba
Ajoyib !. Siz mening vaqtimni saqlaysiz. ko'p rahmat
qo'shib qo'ydi muallif Ugo Chirico, manba

Buni gradle.build fayliga qo'shing:

packagingOptions{
    doNotStrip '*/mips/*.so'
    doNotStrip '*/mips64/*.so'
}
17
qo'shib qo'ydi
Bugun men bu muammoga duch kelganman. Ushbu oddiy echim mening muammomni hal qildi.
qo'shib qo'ydi muallif HendraWD, manba
Bu nima uchun ishlaydi? Qanday oqibatlarga olib kelishi mumkin?
qo'shib qo'ydi muallif CrandellWS, manba

Ha, ushbu xatoni NDK-dan 17.0.4754217 versiyasiga yangilashingiz mumkin.

Faqatgina v.16 (\ android-ndk- r16b -windows-x86_64 \ android-ndk- r16b \ toolchains \ mips64el-linux- android-4.9 \ prebuilt \ windows-x86_64) dan https://developer.android.com/ndk/ download/old_releases va u men uchun ishlaydi.

Google'dan yangi tuzatishni kutgunga qadar barqaror emasligiga ishonchim komil emas.

14
qo'shib qo'ydi
Bu Google tomonidan o'rnatilishi kerak bo'lgan NDK muammosi emas. Haqiqatan ham, NDK r17 da mitsa yordami tushib qoladi. qarang: github.com/android-ndk/ndk/wiki/Changelog-r17
qo'shib qo'ydi muallif Mohammad Rafigh, manba

bu yerda to'plami topildi va undan barcha etishmayotgan fayllarni nusxa ko'chirdim. endi u mukammal ishlaydi.

12
qo'shib qo'ydi
papkada \ toolchains \ mips64el-linux-android-4.9 \ prebuilt \ windows-x86_ va zwnj; 64 faqat bitta faylni o'z ichiga oladi. R16b fayllarini kopyaladım
qo'shib qo'ydi muallif Homo Incognito, manba

Ushbu kichik paketlarni olish uchun faqat 1 gigabaytlik faylni yuklab olishim kerak edi, shuning uchun ushbu paketlarga ega bo'lgan har bir kishi ularni quyidagi havolani yuklab olib, keyin ularni faqat

sdk \ ndk-bundle \ toolchains \ -ni tanlang

mips64el-linus-android

aarch64-linux-android

4
qo'shib qo'ydi

Buning uchun juda foydali maslahat olish kerak

> android-ndk-r16b

Keyin NDK yo'lini android-ndk-r16b ga o'zgartiring.

C: \ Android \ android-ndk-r16b -ni tanlang

Keyinchalik, bu mening birinchi dastur tajribamni bekor qilishni istaydi.

bu yerga tasvirni kiritish

3
qo'shib qo'ydi

Ushbu muammolarni NDK versiyasini o'zgartirib, men oldingi yechimga qo'ygan edim.    https://developer.android.com/ndk/downloads saytidan eski versiyani olishingiz mumkin/old_releases . NDK yo'li mahalliy android loyihasida named.properties nomli faylda aniqlanadi. Original NDK faylini bo'shating, so'ngra local.properties da ko'rsatilgan yo'lga oloder versiyasi NDK arxivini chiqaring. Nihoyat, tozalang va loyihani qayta tiklang.

2
qo'shib qo'ydi