Android Studio Out of Memory Error(Java heap space)

Hello Folks,

If you have an error like this while running your Android Studio App project

Out of memory: Java heap space. Please assign more memory to Gradle in the project’s gradle.properties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: org.gradle.jvmargs=-Xmx1024m

Then you should go to

project–>gradle–> grandle.properties

And increase the maximum heap size like

org.gradle.jvmargs=-XX\:MaxHeapSize\=2024m -Xmx2024m

Then go to

File–>Invalidate Caches / Restart –> Invalidate and Restart

You should try it until you got the right heap size for you.

Have a nice coding… 🙂

Default FirebaseApp is not initialized in this process

Hello All,

If you added Firebase on your Android Studio App and try to do this below.

FirebaseDatabase.getInstance();

Then you can have an Error like Default FirebaseApp is not initialized in this process

In this case just change the version below (This code is in Build Gradle(Project))

from this

classpath 'com.google.gms:google-services:4.1.0'

to this

classpath 'com.google.gms:google-services:4.0.1'

And check it again. 🙂

Could not find method testImplementation() Error Fix.

Merhabalar,

Android Studio 2019 versiyonlarında aldığınız
testImplementation() for arguments [junit:junit:4.12] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. hatasının çözümünü ve açıklamasını Türkçe ve ingilizce altyazılı olarak paylaştığım videodan izleyebilirsiniz.

You can find Android Studio 2019 version error fix with Turkish and English Subtitles
testImplementation() for arguments [junit:junit:4.12] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Web Life News

This was a project to combine nature and office life that i started 1 year ago.

If you can’t work in nature you should get the nature to your office and put your office green and beautiful plants. That will raise the moods of employees.

I am sharing Android Studio Lessons as a support of that project.

Here is the links for my project Web Life News

www.weblifenews.com