Android Studio Problems

TOPIC: How to fasten up gradle in android studio?

SOLUTION:

Following are the solutions and they will possibly explains all the things which will help you to make build gradle process faster and you’ll find at-least one of these to be useful.

First:

Gradle scripts directory(i.e., ~/.gradle/gradle.properties)

`# When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit org.gradle.parallel=true

When set to true the Gradle daemon is used to run the build. For local developer builds this is our favorite property.

The developer environment is optimized for speed and feedback so we nearly always run Gradle jobs with the daemon.

org.gradle.daemon=true`

Second :

Incease dex and heapsize

dexOptions { incremental true javaMaxHeapSize "3g" }

Third:

Also try to set gradle parameters in the settings file by increasing the max heap size in case you have a large project:

`# 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

It is also recommended to use -offline grade instead of using it online.

TOPIC: Design module of emulator missing on my screen. What’s wrong?

ISSUE:

I am using android studio 2.3 and I just don’t see no emulator in the design view. When I try to drag and drop any widget like textview, it doesn’t works and not appears. (I have pasted a link to the image below:)

I tried pasting a code for textview but that too, the textview isn’t visible and I just see a plus sign on the top right.

Look at screenshot below: Here is the screenshot

SOLUTION:

It’s there. With a zoom in level as 1000% you can only see that screen.

Zoom out please. Then pick a device, and API level as well, it seems it’s null.

Leave a Reply