I am a total newbie in Gradle and want to compile some Github project in Android Studio 4.0.1
So I opened Android Studio and tried to import e.g. the tazapp.
After the project is downloaded I think Gradle start to build it (I don’t know that exactly, I didn’t choose it, it runs automatically).
The Build Window’s left side says: Cause: invalid type code: 17
and this is what I can read in the Build Window’s right side:
Download https://services.gradle.org/distributions/gradle-6.5-all.zip (145,77 MB) Download https://services.gradle.org/distributions/gradle-6.5-all.zip finished succeeded, took 55 s 14 ms Starting Gradle Daemon... Gradle Daemon started in 2 s 89 ms FAILURE: Build failed with an exception. * Where: Build file 'D:\Projekte\Android\taz\tazapp-android\tazapp\build.gradle' line: 76 * What went wrong: A problem occurred evaluating project ':tazapp'. > Failed to apply plugin [id 'com.akaita.android.easylauncher'] > Could not create plugin of type 'EasyLauncherPlugin'. > java.lang.ExceptionInInitializerError (no error message) * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating project ':tazapp'. at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93) at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133) at ... Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.akaita.android.easylauncher'] at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:167) at ... ... 126 more Caused by: org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type 'EasyLauncherPlugin'. at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:82) at ... ... 136 more Caused by: java.lang.ExceptionInInitializerError at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ... ... 151 more Caused by: java.lang.NullPointerException at com.akaita.android.easylauncher.plugin.EasyLauncherPlugin.<clinit>(EasyLauncherPlugin.groovy:23) ... 159 more * Get more help at https://help.gradle.org BUILD FAILED in 2m 12s
I shortened it a bit, to make it readable and all those millions following Java errors (at org…) wont help I guess.
The EasyLauncherPlugin doesn’t mean anything to me, I didn’t install it. Is it from this project and just missing? I would have to import it separately?
First I thought this was an error only with this project, but I get very similar (invalid type code) errors with other projects I try to import from Github (e.g. FairEmail.git), so it seems to me, it is a general issue with my configuration.
A search here didn’t help me, the Cause: invalid type code: - Error seems to be not so typical.
Can anybody give me a hint, where I could search to solve this?
In fact, I don’t know about Gradle and I compiled previously (with Android Studio 3- or Eclipse) sometimes some projects without big problems.
Windows 10 Pro 64-Bit with Android Studion 4.0.1