Repository navigation
Closed
Description
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':fvp:configureCMakeDebug[arm64-v8a]'.
> [CXX1405] error when building with cmake using /Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android/CMakeLists.txt: Build command failed.
Error while executing process /Users/womo/Library/Android/sdk/cmake/3.18.1/bin/cmake with arguments {-H/Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=16 -DANDROID_PLATFORM=android-16 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/womo/Library/Android/sdk/ndk/21.4.7075529 -DCMAKE_ANDROID_NDK=/Users/womo/Library/Android/sdk/ndk/21.4.7075529 -DCMAKE_TOOLCHAIN_FILE=/Users/womo/Library/Android/sdk/ndk/21.4.7075529/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/womo/Library/Android/sdk/cmake/3.18.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/womo/news_app/build/fvp/intermediates/cxx/Debug/6t1v4n5x/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/womo/news_app/build/fvp/intermediates/cxx/Debug/6t1v4n5x/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -B/Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android/.cxx/Debug/6t1v4n5x/arm64-v8a -GNinja -DANDROID_STL=c++_shared}
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/womo/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android/.cxx/Debug/6t1v4n5x/arm64-v8a/CMakeFiles/CMakeOutput.log".
CMake Error at CMakeLists.txt:67 (include):
include could not find load file:
/Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android/mdk-sdk/lib/cmake/FindMDK.cmake
2
CMake Error at CMakeLists.txt:74 (get_filename_component):
get_filename_component called with incorrect number of arguments
4
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 22s
Exception: Gradle task assembleDebug failed with exit code 1
[!] Flutter (Channel stable, 3.10.6, on macOS 13.4 22F66 darwin-arm64, locale zh-Hans-CN)
• Flutter version 3.10.6 on channel stable at /Users/womo/Documents/flutter/flutter
! Warning: `flutter` on your path resolves to /Users/womo/Documents/flutter/flutter_likeU/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/womo/Documents/flutter/flutter. Consider adding /Users/womo/Documents/flutter/flutter/bin to the front of your path.
! Warning: `dart` on your path resolves to /Users/womo/Documents/flutter/flutter_likeU/bin/dart, which is not inside your current Flutter SDK checkout at /Users/womo/Documents/flutter/flutter. Consider adding /Users/womo/Documents/flutter/flutter/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f468f3366c (6 weeks ago), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at /Users/womo/Library/Android/sdk
• Platform android-33, build-tools 32.1.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.79.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.70.0
[✓] Connected device (3 available)
• Pixel 2 XL (mobile) • 803KPPB1657976 • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4 22F66 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 116.0.5845.96
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
exit code 0
Metadata
Metadata
Assignees
Labels
No labels
Activity
wang-bin commentedon Aug 23, 2023
add a line before execute_process https://github.com/wang-bin/fvp/blob/master/android/CMakeLists.txt#L57
then show me the output again.
Does /Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android/mdk-sdk-android.7z exist?
AnonymHK commentedon Aug 23, 2023
His question should also be the same as mine, mdk sdk android.7z is empty when downloaded back!
wang-bin commentedon Aug 23, 2023
#17 (comment)
i need to see the log. are you in china? you may need a vpn to download.
abdelaziz-mahdy commentedon Aug 24, 2023
do you think its a good idea to set GitHub releases and get the archives from it? or there is a limitation to it?
maybe as a fallback?
wang-bin commentedon Aug 24, 2023
A fallback is a good idea. But I still need the log to known the
STATUSvalue when download failed.abdelaziz-mahdy commentedon Aug 24, 2023
yes i dont mind the logs to keep track of what happens, can a check for md5 or sha256 be added or you think it will be a not needed work?
wang-bin commentedon Aug 24, 2023
i upload sdk to the same url, so the content changes, md5 is not an option
iamv4g commentedon Sep 5, 2023
@wang-bin

I added line
message("extract mdk-sdk")and saw it loggediamv4g commentedon Sep 5, 2023
This is full log
wang-bin commentedon Sep 5, 2023
You can download manually from
https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-android.7z
and extract to
/Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android
iamv4g commentedon Sep 5, 2023
Yes. I download manually then fvp build success.
I think maybe this problem is related to timeout when dowload
mdk-sdk-android.7zwang-bin commentedon Oct 5, 2023
Will download again when rebuilding your project.