AVD Manager: The emulator process for AVD has terminated | Android Studio Arctic Fox 2020.3.1 | MacOS 12 M1 chip
The AVD manager is not starting the emulator, whenever tried starting the emulator it shows the below error in screenshot
2 answers
-
answered 2022-01-23 02:50
Ajinkya S
I was able to find solution after searching for a while on the internet and posting the answer here so that anyone else facing the same issue could find it easily.
Apple M1 chip has a 64 bit ARM architecture also known as AArch64, so it requires the emulator setup in the following way
When you create a new virtual device select the options shown in the screenshot
Remember to select the Other images tab and under that verify the ABI is arm64-v8a, then only the emulator will get started.
-
answered 2022-04-04 08:43
Marim mohamed
The same problem happened with me, and I solved it when I deleted the emulator by opening the task manager and doing the end task for avd, android, and qeum-system and then in this path
C:\Users*pc*.android\avd
and I
-based on this- what was in it from the folder of the emulator and the ini file. Then i just open android and make new emulator , and work with me then
do you know?
how many words do you know
See also questions close to this topic
-
android emulator disable microphone when launching device
How do we disable the (virtual) microphone when launching the emulator?
Situation
When launching an Android Studio stock emulator device, the microphone is always enabled and listening.Why would we want this fix
- Convenience, Many users have a microphone headset and when the microphone is enabled, they lose noise canceling and/or stereo. It can be extremely annoying, forcing the user to disconnect the device which swaps the emulator audio + sounds to another microphone/speaker input/output.
- Security risk, the microphone is actively listening. Is the data going anywhere? Who knows...this is an unnecessary security risk for any organization, IE a dev is on a (zoom, teams, meetings) call with an open emulator that is using the microphone and listening).
Possible Solutions (based on practicality)
- flag to disable virtual audio devices (IE the mac's speaker or attached headphones w/ a microphone). I've seen 0 documentation regarding a flag like this.
- flag to provide to the emulator to disable all audio input (see answer 1). TLDR add the flag
-no-audio
- route the android studio emulator (or the mac's microphone audio input) to a virtual device that is not listening. Or have the default OS microphone input set to 0 volume. This can be done via macOSX Automator
- route the adb emulator to the mac's internal microphone instead of the current microphone to avoid it triggering the headsets microphone settings.
The preferred solution
- Microphone audio-in is disabled when booting the emulator
- Android device audio-out remains and uses the computer's default speakers
- The computer's default microphone is not triggered (at all) to avoid causing a stereo -> mono swap or noise cancellation breakage.
System Information:
- android emulator: 31.2.10.0
- MacOS 12.3.1
- Headsets tested with these issues:
- Bose NC 700
- Bose QC series
- Sony WF-1000XM4
- Sony WH-1000XM3
- any headset with a microphone connection macro that does something with the speaker (like talk through) or with the input audio like stereo -> mono.
-
Calling Firebase cloud function causes DEADLINE_EXCEEDED error when using Firebase emulator
I've got a very simple cloud function that returns a string in a JSON.
const functions = require("firebase-functions"); // Create and Deploy Your First Cloud Functions // https://firebase.google.com/docs/functions/write-firebase-functions exports.helloWorld = functions.https.onRequest((request, response) => { functions.logger.info("Hello logs!", {structuredData: true}); response.send({data: "Hello from Firebase!"}); });
And I am calling it like this(app is running in android emulator):
async function callFirebaseCloudFunction() { try { functions().useEmulator('localhost', 5001); const helloWorldFunction = functions().httpsCallable('abcd'); const response = await helloWorldFunction(); console.log(response?.data); alert(response?.data); } catch (error) { console.log("====",error); alert(`${JSON.stringify(error)}` ); } }
The issue is that I am getting
DEADLINE_EXCEEDED
error.Note that I am also running firebase's emulator for cloud function, therefore this line:
functions().useEmulator('localhost', 5001);
Otherwise, commenting the above line and calling the deployed function works fine.
-
How To Fix VT-X For Laptop Lenovo
android studio can't run the app on emulator I don't what happen in my device small note:
- my device Lenovo Ideapad 700
- Operating System windows
-
How Do I Convert This ATT assembly to Intel Syntax? Jump to a non-relative address without using registers
I was reading this article " assembly-challenge-jump-to-a-non-relative-address-without-using-registers ".
I need to do exactly what he suggests here (Jump to a non-relative address without using registers), only I need to do it in intel syntax instead of att.
The solution he found for att syntax was:
jmp *0f(%eip) 0: .int 0x12345678
What would this look like in intel syntax?
-
wrmsr instruction causing triple fault in bootloader while trying to enable paging?
I am working on an OS and am trying to transition into long mode in order to execute 64-bit Rust code in an x86_64 environment.
boot.asm:
;;;;;;;;;;;;;;;;;;;;;;;;; ; STAGE ONE / BOOT SECTOR ;;;;;;;;;;;;;;;;;;;;;;;;; [ORG 0x7c00] ; this doesn't work when targeting elf in nasm [BITS 16] global _start _start: ; set segment registers cli xor ax, ax ; code segment mov ds, ax ; data segment mov es, ax ; extra segment mov ss, ax ; stack segment mov bp, 0x7c00 ; base pointer mov sp, bp ; stack pointer sti ; print message (removed for now, though) ;mov si, msg1 ;call print ;%include 'Bootloader/print.asm' ;msg1: db "Bootsector - loading stage two", 0 ; Print out RM (for real mode) mov ah, 0eh mov al, 'R' int 10h mov al, 'M' int 10h ; read the next sector. i wrote some notes on how this interrupt works for later mov al, 01h ; sectors to read (1) mov bx, 0x7e00 ; buffer address (512 bytes away from current address 0x7c00) mov cx, 0002h ; cylinder and sector numbers (cylinder 0, sector 2) mov dl, 0 ; drive 0 (boot drive) mov dh, 0 ; head 0 mov ah, 02h int 13h ; switch us to protected mode cli lgdt [GDT.desc] mov eax, cr0 or eax, 0x1 mov cr0, eax ; we are now in protected mode! jmp 0x8:ProtMode [BITS 32] ProtMode: ; reset segment registers mov ax, 0x10 mov ds, ax mov ss, ax mov es, ax mov fs, ax mov gs, ax jmp 0x7e00 ; next sector GDT: ; finally figured out the GDT. comments are copied from https://github.com/micouy/gniazdo-os/blob/master/asm/gdt.asm to help me remember what they mean .null: dq 0x0 .code: dw 0xffff ; Limit dw 0x0 ; Base db 0x0 ; Base ; 7 - present flag ; 5-6 - required privelige ; 4 - is either code or data? ; 3 - code or data? ; 2 - is lower privelige allowed to read/exec? ; 1 - read or write? ; 0 - access flag db 0b10011010 ; ACCESS BYTES ; 7 - granularity (multiplies segment limit by 4kB) ; 6 - 16 bit or 32 bit? ; 5 - required by intel to be set to 0 ; 4 - free to use ; 0-3 - last bits of segment limit db 0b11001111 ; FLAGS db 0x0 ; Base .data: dw 0xffff dw 0x0 db 0x0 ; the access bytes and flags are the same as in the .code db 0b10010010 ; ACCESS BYTES db 0b11001111 ; FLAGS db 0x0 .desc: dw $ - GDT - 1 dd GDT times 510-($ - $$) db 0 ; fill up rest of sector with zeros dw 0xAA55 ; tells BIOS this is bootable ;;;;;;;;;;; ; STAGE TWO ;;;;;;;;;;; [BITS 32] ; making sure we're in PM ; if this code executes, the "RM" written on the screen will change to "PM" for protected mode, ; letting us know that we're running in protected mode now ;) mov word [0xb8000], 0x0750 ; set paging tables, credits to the intermezzOS docs for helping me learn this ; point first entry of p4_table to first entry in p3_table mov eax, p3_table ; copy p3_table to EAX or eax, 0b11 ; sets first two bits, present bit and writable bit, to one (page is in memory, page can be written to) mov dword [p4_table + 0], eax ; copy EAX to the memory address of the zeroth entry in the p4_table ; point first entry of p3_table to first entry in p2_table mov eax, p2_table ; copy p2_table to EAX or eax, 0b11 ; sets first two bits, present bit and writable bit, to one (page is in memory, page can be written to) mov dword [p3_table + 0], eax ; copy EAX to the memory address of the zeroth entry in the p3_table ; point all p2_table entries to a page mov ecx, 0 ; counter .loop_p2_table: mov eax, 0x200000 ; 2 MiB mul ecx ; multiply EAX by ECX or eax, 0b10000011 ; extra 1 at the front tells that this is a "huge page", the rest is the same mov [p2_table + ecx * 8], eax ; copy EAX to the memory address of the (ECX * 8)th entry in the p2_table inc ecx ; increment ECX by 1 (ECX = ECX+1) cmp ecx, 512 ; is ecx equal to 512? jne .loop_p2_table ; if not, loop back over mov word [0xb8002], 0x0754 ; set screen to "PT" for paging tables ; enable paging ; move page table into CR3 mov eax, p4_table mov cr3, eax ; enable PAE mov eax, cr4 or eax, 1 << 5 mov cr4, eax ; set Long Mode bit mov ecx, 0xC0000080 rdmsr or eax, (1 << 8) wrmsr ; write MSR TODO: fix this bc it causes a triple fault? ; enable paging :O mov eax, cr0 or eax, (1 << 31 | 1 << 16) mov cr0, eax ; set the Long Mode GDT lgdt [gdt64.desc] ; TODO: finish bootloader ; paging tables section .bss align 4096 p4_table: resb 4096 p3_table: resb 4096 p2_table: resb 4096 ; long GDT section .rodata gdt64: .null: dq 0 .code: equ $ - gdt64 dq (1<<44) | (1<<47) | (1<<41) | (1<<43) | (1<<53) ; 44th bit: Descriptor type, set to 1 for code/data segments ; 47th bit: Present, set to 1 if entry is valid ; 41st bit: Read/Write, set to 1 if it's readable ; 43rd bit: Executable, set to 1 for code segments ; 53rd bit: "64-bit," set to 1 if this is a 64-bit GDT .data: equ $ - gdt64 dq (1<<44) | (1<<47) | (1<<41) ; 41st bit: set to 1 if it's writable ; 44th and 47th bit are the same .desc: dw .desc - gdt64 - 1 dq gdt64
Makefile in case it's needed (i am using the
make boot
option)https://github.com/TetrisLitHub/Bootable-Rust/blob/master/Makefile
virtualbox error message in debug console:
dbgf event: DBGFSTOP (hyper) File: VINF_EM_TRIPLE_FAULT Line: 0 Function: <NULL> eax=00000100 ebx=00007e00 ecx=c0000080 edx=00000000 esi=00000000 edi=0000fff0 eip=00007e6a esp=00007c00 ebp=00007c00 iopl=0 nv up di pl nz na po nc cs=0008 ds=0010 es=0010 fs=0010 gs=0010 ss=0010 eflags=00200006 0008:00007e6a 0f 30 wrmsr VBoxDbg>
I'm really confused why
wrmsr
is doing this, I've checked my code against the code from the IntermezzOS book for mistakes and couldn't find any. I've googled multiple times and I can't find what I've done wrong. Does the MSR register somehow work differently in VirtualBox than it does in other virtual machines or on bare metal?find the GitHub repository at my account here: https://github.com/TetrisLitHub/Bootable-Rust
-
Opcode/intrinsic to sum and multiply packed elements
I know modern x86 has opcodes (often supported by compiler intrinsics) to perform element-wise multiplication and summation of packed elements between two arrays. That is, if I have two arrays: int a[4] { ... }, b[4] {...}, there are instructions that will perform the equivalent of:
int c[4]; ... c[0]=a[0] + b[0]; c[1] = a[1] + b[1] c[2] = a[2] + b[2]; c[3] = a[3] + b[3];
Or the same for multiplication. But is there an x86 (or x86-64) opcode that would instead give me
long long result = a[0] + a[1] + a[2] + a[3]
in one step? I've tried looking for such in both opcodes lists as well as various matrix multiplication posts (where I know such an instruction would be extremely useful) without success.
-
What IDE for Python on M1 Mac
Dear fellow programmers,
I am trying to implement this repository to experiment around. Unfortunately I am not able to get anything running as it throws several errors differing from IDE to IDE.
To exclude incompatibility issues with different IDE's and M1 Mac, I am interested in your opinion of the "way to go" setup for python code.
Thanks in advance :)
-
Issues connecting SQLedge to asp.net projects on m1 mac
Back Story:
So I've been recently developing some c# sharp projects using a m1 Mac and a sql image (sqledge) hosted in a docker container. When trying to connect using entity framework to the container I get the results below. NB. I am able to connect to the container using azure data factory and I have enabled remote connections on the server.
Connection String used:
"DefaultConnection": "Server=(localhost);Database=aspnet-Webapplogin-40736292-40D4-4306-A965-8CCBFEEE3176;User Id= sa; Password=password;Trusted_Connection=True;MultipleActiveResultSets=true;"
dotnet ef database update: returns the Following
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
-
SQLAlchemy on Apple Mac M1
What's the recommended way to access Microsoft SQL Server on an Apple Mac M1 using python in a jupyter notebook?
pymssql works ok, but sql.io complains about its preference for SQLAlchemy
bcpy works ok
pyodbc.drivers is empty
SQLAlchemy does not seem to work
No doubt paths are mucked up here. Has anyone worked out the solution?
-
Testing Win32 applications on Windows ARM64
I have a Win32 application that I would like to port on Windows on ARM. To do so I have recompiled my entire application for the ARM64 architecture. I'm evaluating the possible ways to test and deploy the application on Windows ARM64 devices. As far I know, the only proper way to do this (other than using an emulator which would heavily performance) is to test on a native ARM64 device. Microsoft offers a Snapdragon Developer Kit for developers to purchase and test application on Windows ARM64. However, this seems to not be available outside the US. What is the most convenient (and cheap) to test Windows applications on ARM64 devices?
-
how to configure bazel toolchain for cross compile use rules_foreign_cc
my project need cross compile for arm aarch64 on ubuntu x86_64, but failed at configure stage, below is log
log
# Execution platform: //platforms:linux_gcc9_aarch64 SUBCOMMAND: # @boost//:filesystem [action 'Linking external/boost/libfilesystem.so', configuration: fc89852de14da3c51e8226c7c5e3087929e4f56710d05ed9ab86ed21b8eb16d4, execution platform: //platforms:linux_gcc9_aarch64] (cd /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo && \ exec env - \ PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/root/src/go/bin:/usr/local/jdk-11.0.15/bin:/root/.ft:/data/.cache/npm/global/bin \ PWD=/proc/self/cwd \ external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -shared -o bazel-out/k8-fastbuild/bin/external/boost/libfilesystem.so bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/codecvt_error_category.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/directory.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/exception.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/operations.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/path.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/path_traits.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/portability.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/unique_path.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/utf8_codecvt_facet.o bazel-out/k8-fastbuild/bin/external/boost/_objs/filesystem/windows_file_codecvt.o -Wl,-S -lstdc++ -lm -Wl,-no-as-needed -Wl,-z,relro,-z,now -Wall -pass-exit-codes '-fuse-ld=gold') # Configuration: fc89852de14da3c51e8226c7c5e3087929e4f56710d05ed9ab86ed21b8eb16d4 # Execution platform: //platforms:linux_gcc9_aarch64 ERROR: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/external/rules_foreign_cc/toolchains/BUILD.bazel:130:10: BootstrapGNUMake external/rules_foreign_cc/toolchains/make failed: (Exit 1): bash failed: error executing command (cd /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo && \ exec env - \ PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/root/src/go/bin:/usr/local/jdk-11.0.15/bin:/root/.ft:/data/.cache/npm/global/bin \ /bin/bash -c bazel-out/k8-opt-exec-277332AD/bin/external/rules_foreign_cc/toolchains/make_tool_foreign_cc/wrapper_build_script.sh) # Configuration: 920514b75167e08aaf5b08b6fc5ff1721a7e3be841d2c442cd3624a15e568e52 # Execution platform: //platforms:linux_gcc9_aarch64 rules_foreign_cc: Build failed! rules_foreign_cc: Keeping temp build directory and dependencies directory for debug. rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag. rules_foreign_cc: Printing build logs: _____ BEGIN BUILD LOGS _____ + AR=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc-ar + ARFLAGS=rcsD + CC=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc + CFLAGS='-fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -march=armv8-a -g0 -O3 -DNDEBUG -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -funsafe-math-optimizations -ftree-vectorize -std=c99 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted' + LD=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc + LDFLAGS='-lstdc++ -lm -Wl,-no-as-needed -Wl,-z,relro,-z,now -Wall -pass-exit-codes -fuse-ld=gold -Wl,--gc-sections' + ./configure --without-guile --with-guile=no --disable-dependency-tracking --prefix=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-opt-exec-277332AD/bin/external/rules_foreign_cc/toolchains/make checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for gcc... /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-opt-exec-277332AD/bin/external/rules_foreign_cc/toolchains/make.build_tmpdir':
config.log
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by gperftools configure 2.9.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/com_github_gperftools_gperftools/configure --prefix=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-fastbuild/bin/external/com_github_gperftools_gperftools/gperftools_build.build_tmpdir/gperftools_build --enable-shared=no --enable-frame-pointers --disable-libunwind ## --------- ## ## Platform. ## ## --------- ## hostname = ubuntu uname -m = x86_64 uname -r = 5.4.0-109-generic uname -s = Linux uname -v = #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-fastbuild/bin/external/com_github_gperftools_gperftools/gperftools_build.ext_build_deps/bin PATH: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo PATH: /root/.cargo/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin PATH: /usr/local/go/bin PATH: /root/src/go/bin PATH: /usr/local/jdk-11.0.15/bin PATH: /root/.ft PATH: /data/.cache/npm/global/bin PATH: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-fastbuild/bin/external/com_github_gperftools_gperftools/gperftools_build.ext_build_deps/bin/toolchains ## ----------- ## ## Core tests. ## ## ----------- ## configure:2617: checking build system type configure:2631: result: x86_64-pc-linux-gnu configure:2651: checking host system type configure:2664: result: x86_64-pc-linux-gnu configure:2700: checking for a BSD-compatible install configure:2768: result: /usr/bin/install -c configure:2779: checking whether build environment is sane configure:2834: result: yes configure:2978: checking for a thread-safe mkdir -p configure:3017: result: /bin/mkdir -p configure:3024: checking for gawk configure:3040: found /usr/bin/gawk configure:3051: result: gawk configure:3062: checking whether /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make/bin/make sets $(MAKE) configure:3084: result: yes configure:3113: checking whether /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make/bin/make supports nested variables configure:3130: result: yes configure:3260: checking whether to enable maintainer-specific portions of Makefiles configure:3269: result: no configure:3296: checking for git configure:3314: found /usr/local/bin/git configure:3327: result: /usr/local/bin/git configure:3400: checking whether /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make/bin/make supports the include directive configure:3415: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make/bin/make -f confmf.GNU && cat confinc.out this is the am__doit target configure:3418: $? = 0 configure:3437: result: yes (GNU style) configure:3507: checking for gcc configure:3534: result: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc configure:3763: checking for C compiler version configure:3772: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc --version >&5 aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3783: $? = 0 configure:3772: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -v >&5 Using built-in specs. COLLECT_GCC=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc COLLECT_LTO_WRAPPER=/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/external/gcc9_arm_aarch64/bin/../libexec/gcc/aarch64-none-linux-gnu/9.2.1/lto-wrapper Target: aarch64-none-linux-gnu Configured with: /tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/src/gcc/configure --target=aarch64-none-linux-gnu --prefix= --with-sysroot=/aarch64-none-linux-gnu/libc --with-build-sysroot=/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-bugurl=https://bugs.linaro.org/ --enable-gnu-indirect-function --enable-shared --disable-libssp --disable-libmudflap --enable-checking=release --enable-languages=c,c++,fortran --with-gmp=/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-mpc=/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-isl=/tmp/dgboter/bbs/rhev-vm2--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419 --with-pkgversion='GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)' Thread model: posix gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) configure:3783: $? = 0 configure:3772: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -V >&5 aarch64-none-linux-gnu-gcc: error: unrecognized command line option '-V' aarch64-none-linux-gnu-gcc: fatal error: no input files compilation terminated. configure:3783: $? = 1 configure:3772: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -qversion >&5 aarch64-none-linux-gnu-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? aarch64-none-linux-gnu-gcc: fatal error: no input files compilation terminated. configure:3783: $? = 1 configure:3803: checking whether the C compiler works configure:3825: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c99 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -lstdc++ -lm -Wl,-no-as-needed -Wl,-z,relro,-z,now -Wall -pass-exit-codes -fuse-ld=gold -lpthread conftest.c >&5 configure:3829: $? = 0 configure:3877: result: yes configure:3880: checking for C compiler default output file name configure:3882: result: a.out configure:3888: checking for suffix of executables configure:3895: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -o conftest -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c99 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -lstdc++ -lm -Wl,-no-as-needed -Wl,-z,relro,-z,now -Wall -pass-exit-codes -fuse-ld=gold -lpthread conftest.c >&5 configure:3899: $? = 0 configure:3921: result: configure:3943: checking whether we are cross compiling configure:3951: /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/gcc9_arm_aarch64/bin/aarch64-none-linux-gnu-gcc -o conftest -fPIC -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c99 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__=redacted -D__TIMESTAMP__=redacted -D__TIME__=redacted -lstdc++ -lm -Wl,-no-as-needed -Wl,-z,relro,-z,now -Wall -pass-exit-codes -fuse-ld=gold -lpthread conftest.c >&5 configure:3955: $? = 0 configure:3962: ./conftest /root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/external/com_github_gperftools_gperftools/configure: line 3964: ./conftest: cannot execute binary file: Exec format error configure:3966: $? = 126 configure:3973: error: in `/root/.cache/bazel/_bazel_root/dbf178c3b436e7b271af34e78939cab5/execroot/bazel_simple_demo/bazel-out/k8-fastbuild/bin/external/com_github_gperftools_gperftools/gperftools_build.build_tmpdir': configure:3975: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details
bazel toolchain configuration:
toolchain:
http_archive( name = "gcc9_arm_aarch64", build_file = "@bazel_build_file_repo//bazel:gcc_arm_aarch64.BUILD", sha256 = "8dfe681531f0bd04fb9c53cf3c0a3368c616aa85d48938eebe2b516376e06a66", strip_prefix = "gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu", #urls = ["https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz"], urls = ["file:///root/src/cpp/toolchains/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz"], )
platform config
constraint_setting(name = "gcc_version") constraint_value( name = "gcc_9", constraint_setting = ":gcc_version", ) constraint_value( name = "gcc_10", constraint_setting = ":gcc_version", ) constraint_value( name = "gcc_11", constraint_setting = ":gcc_version", ) platform( name = "linux_gcc9_aarch64", constraint_values = [ "@platforms//cpu:aarch64", "@platforms//os:linux", ":gcc_9", ], )
toolchain config
toolchain( name = "gcc9_arm_aarch64_xcompile_toolchain", exec_compatible_with = [ "@platforms//cpu:x86_64", "@platforms//os:linux", ], target_compatible_with = [ "@platforms//cpu:aarch64", "@platforms//os:linux", "//platforms:gcc_9", ], toolchain = "@gcc9_arm_aarch64//:cc_toolchain", toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", )
here is a very tiny demo to reproduce it: [enter link description here][https://github.com/xiedeacc/bazel_simple_demo.git]
-
Android emulator crashes when I use CMD+Q tu close it on M1 MBP
I have Android Studio installed on my M1 MBP:
Android Studio Bumblebee | 2021.1.1 Patch 3 Build #AI-211.7628.21.2111.8309675, built on March 16, 2022 Runtime version: 11.0.11+0-b60-7772763 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.3.1 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 10 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.21-release-334-AS7442.40)
When I use CMD+Q to close the emulator I get this crash:
If I use close button of the emulator it works fine.
Here is the full crash log: https://codeshare.io/xvx3Xk
Is there anyone who nows a solution to fix this?
-
Android Studio Arctic Fox: Problem in Create new Project
I have updated my android studio to Android Studio Arctic Fox but after creating a new project the Gradle configuration has totally changed, and the build Gradle has failed. I have questions: 1-Do settings like ClassPath for Gradle have to be added manually?
Could not resolve all artifacts for configuration ':classpath'. > Could not find gradle-7.1.1.jar (com.android.tools.build:gradle:7.1.1)
2-this is my build.gradle file, what does apply false means?
plugins { id 'com.android.application' version '7.1.1' apply false id 'com.android.library' version '7.1.1' apply false id 'org.jetbrains.kotlin.android' version '1.5.30' apply false } task clean(type: Delete) { delete rootProject.buildDir }
-
How do i enable auto import in android studio arctic fox
I have tried looking but i could not find the auto import section in android studio arctic fox, and i have also followed some of the answers shown here but still to no avail
-
could not load wrapper properties from 'C:\Users\008\AndroidStudioProjects\CookpadAndroidApp\gradle\wrapper\gradle-wrapper.properties'
Could not load wrapper properties from 'C:\Users\008\AndroidStudioProjects\CookpadAndroidApp\gradle\wrapper\gradle-wrapper.properties
'. when I create a new project every time it is giving this error above even I have installed and reinstalled android studio from scratch what is your suggestions I have tried following links as well Could not load wrapper properties in android studio and Could not load wrapper properties from 'C:\Users\AndroidStudioProjects\Test\gradle\wrapper\gradle-wrapper.properties' I am using arctic fox in windows any help will be greatly appreciated