This first post is dedicated to a wonderfull tool => Monkey ! If you had never heard of this tool, your life is turning better now. Monkey is a simple tool which allow to generate pseudo-random gestures , on a device or on an emulator . Shortly, you can in a few seconds simulate a user using your application, but a pretty stupid one (just as all users ?) because all his actions will be generated randomly. These actions won’t make any sense, but the aim here is to detect bugs in your app, and this can be very useful. Note 1 : This is absolutely not a substitute to other tests you should do (like unit tests…). Do what I say, not what I do Note 2 : For this tut, I suppose you have one emulator or a device connected in debug mode (with ADB drivers installed). I won’t detail this part. Here we go, launching cmd, and browsing to [android-sdk-path]**/platform-tools. The basic command to use monkey is the following: adb shell monkey <options> For exampl...
Here is how to solve this issue : add gradle.properties file to root folder of your project add 'android.useDeprecatedNdk=true' to gradle.properties file Here is my gradle.properties : # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/do...
Comments
Post a Comment