Android Studio 3.0 mksdcard error when creating AVD - android

I have an issue in creating new AVD in android studio 3.0.
error is
Invalid argument size '124M'
mksdcard: create a blank FAT32 image to be used with the Android emu
usage: mksdcard [-l label]
if is a simple integer, it specifies a size in bytes if
is an integer followed by 'K', it specifies a size in Ki if
is an integer followed by 'M', it specifies a size in Mi if
is an integer followed by 'G', it specifies a size in Gi
Minimum size is 9M. The Android emulator cannot use smaller images.
Maximum size is 1099511627264 bytes, 1073741823K, 1048575M or 1023G
The same error happens if I use mksdcard from CMD.
AS is installed on win7.

Related

i can't generate signed apk. I receive an error with these messages

I want to update my app, but when I try to generate a signed apk, I receive an error with these messages:
Problem in your maximum memory allocation pool for a Java Virtual Machine.
You need to modify your gradle.properties file and increase the amount of memory allocated to the Gradle Daemon VM by 2 Gb, to a minimum of 4 Gb, using the org.gradle.jvmargs property: Kindly try as follows
org.gradle.jvmargs=-Xmx4096m
For more information please refer following link https://medium.com/google-developers/faster-android-studio-builds-with-dex-in-process-5988ed8aa37e

How to handle a system.img file size larger than the partition size declared inside BoardConfig.mk file?

while trying to build my image, I am getting the following error: "ext4_allocate_best_fit_partial: failed to allocate 20001 blocks, out of space?"
I don't want to change the partition table inside bootloader of dev as there are other dependencies. What other solutions I can explore.

Limitation on Ne10 ARM library maximum length fft

I'm computing the Fourier transform of a 2^18 samples vector using the FFT included in Ne10 ARM library and it doesn't seem to work. It produces a Sigsev error on the Android Studio. The funny thing is that a 512 samples FFT works well. My questions are:
Is there a limitation on the maximum amount of samples I can compute the fft on with this library?:
I'm using:
fftPlan = ne10_fft_alloc_c2c_float32_neon(fftSize);
fftIn = (ne10_fft_cpx_float32_t*)NE10_MALLOC (fftSize * sizeof (ne10_fft_cpx_float32_t));
fftOut = (ne10_fft_cpx_float32_t*)NE10_MALLOC (fftSize * sizeof (ne10_fft_cpx_float32_t));
Are these memory allocating functions thread safe? (I've tested and they seem to)
Leaving out their own FFT benchmark comparisons. Is there any other 3rd party site where I can compare its performance with fftw?
The library produces a "text relocations warning" when I use NDK10e for building the native shared library loaded from my android app, which when using ndk13 produces the following error :
D:/AndroidDevelop/android-ndk-r13/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: warning: shared library text segment is not shareable
D:/AndroidDevelop/android-ndk-r13/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: treating warnings as errors clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

Extract symbol table from zImage without actual loading

I have a Android kernel boot image -- zImage.
How to extract the symbol table from it? Maybe it is in a compressed form.
The system is 32-bit ARM.
I do not have the actual device to load this zImage, and get symbols from /proc/ksyms or /proc/kallsyms or system.map.
I can extract vmlinux from zImage, but still no symbols after objdump.

charmap can't decode byte 0x8d

I'm trying to create an APK from a C++ code with Cocos Framework (cocos2d-x 3.8.1)
When i go in the directory and use the command line "cocos run -p android", i got an error
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position
29180: character maps to undefined
This happen when the following line is called
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
in the file
"\Python\Python35-32\lib\encodings\cp1252.py", line 23
Any idea about how to fix this ?
Cocos2d requires Python 2.7 to run. You are getting that error because of your Python version (Which is the 3.5v).
That command is going to search for the python.exe from your Python directory.
I suggest you to download the 2.7 version and rename the python.exe to python3.exe in your "Python\Python35-32" directory, so that the Python2.7\python.exe is run. This works to me.

Categories

Resources