soarlab / maline

Android Malware Detection Framework
GNU Affero General Public License v3.0
81 stars 31 forks source link

avd-create.sh -a x86 -d maline-avd error #14

Closed tuomao closed 8 years ago

tuomao commented 8 years ago

when I execute

avd-create.sh -a x86 -d maline-avd

there is error.and I find

android create avd --force --snapshot --sdcard 512M --skin WVGA800 --name maline-avd --target android-19 --abi x86

fails. so I debug there instruction

bash -x  android create avd --force --snapshot --sdcard 512M --skin WVGA800 --name maline-avd --target android-19 --abi x86

the result is

+ exec java -Xmx256M -Dcom.android.sdkmanager.toolsdir=/home/tuomao/Desktop/anroid_security/custom-android-sdk/tools/lib -classpath /home/tuomao/Desktop/anroid_security/custom-android-sdk/tools/lib/sdkmanager.jar:/home/tuomao/Desktop/anroid_security/custom-android-sdk/tools/lib/swtmenubar.jar:/home/tuomao/Desktop/anroid_security/custom-android-sdk/tools/lib/x86/swt.jar com.android.sdkmanager.Main create avd --force --snapshot --sdcard 512M --skin WVGA800 --name maline-avd --target android-19 --abi x86
Error: Missing platform-tools
Error: Target id is not valid. Use 'android list targets' to get the target ids.
root@ubuntu:/home/tuomao/Desktop/anroid_security/custom-android-sdk/tools/lib# android list targets
Error: Missing platform-tools
Available Android targets:

after my check,the Target android-19 is correct . so can you help me to solve the problem.(I use your supply custom-and-sdk,is there any problem with the sdk?)

mdimjasevic commented 8 years ago

Hi @tuomao ,

I am sorry for a late reply...

It seems that you haven't added the platform-tools directory to your PATH variable. Take a look at the README under the Path to Executables section.

mdimjasevic commented 8 years ago

@tuomao, if you still have the problem, please re-open the issue.