menu

arrow_back AndroidJavaException: java.lang.ClassNotFoundException. How to solve it?

by
0 votes
1.jpg


I use Easy Mobile Pro.
One error in two places and it cycles:
1. AndroidJavaException: java.lang.ClassNotFoundException:
com.google.android.gms.ads.initialization.OnInitializationCompleteListener
2. AndroidJavaException: java.lang.ClassNotFoundException:
com.sglib.easymobile.androidnative.AppUtil

What Should Happen: When you click on the button, a banner adverts with a reward will be shown.

The initialization hangs on the Empty object, which also has display functions that use buttons.

1 Answer

by
 
Best answer
0 votes
Right-click on My Computer - Properties - Advanced System Settings - Environment Variables - System Variables.
Here you add the JAVA_HOME variable
and value (JDK path)

And also in this path C:\Users\Your user\.gradle\wrapper\dists
remove gradle 5.1.1-bin (you may have a different version, the essence does not change)

And everything works great.

Video (ENG):