Google does not officially support compiling Android on Mac. but I read that it is possible.
The command m
has an error
How can I fix the error?
the error:
"Could not find a supported mac sdk: [\"10.10\" \"10.11\" \"10.12\" \"10.13\" \"10.14\" \"10.15\" \"11.0\" \"11.1\"]"
I understood that the problem is due to an incompatible sdk, in the guides I saw that you need to download a compatible sdk from https://github.com/phracker/MacOSX-SDKs/releases, but I can't find one for mac 13.3
update: I added my sdk number to the array, As in the post https://stackoverflow.com/a/53715111/9458132. And now there are errors:
'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
I tried to fix it in the code(Although of course this is not a recommended thing...) , in any case there is an error:
`ld: in /Volumes/aosp/source/prebuilts/rust/darwin-x86/1.51.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-6c9932b2c088cadd.rlib(lib.rmeta), archive member 'lib. rmeta' with length 30728 is not mach-o or llvm bitcode file '/Volumes/aosp/source/prebuilts/rust/darwin-x86/1.51.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-6c9932b2c088cadd. rlib'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
15:15:09 ninja failed with: exit status 1
- Why there is the error
- Is there a solution where they won't have to change the code (it turns out that because the sdk is not compatible, it also gets stuck afterwards..)
i am using mac 13.3 (ventura)
sdk version:
13.3
clang version:
16.0.1
thank's.