Getting Unable to load class 'org.gradle.initialization.BuildCancellationToken' error - android

My project was running good but suddenly getting this error
Unable to load class 'org.gradle.initialization.BuildCancellationToken'.
This is an unexpected error. Please file a bug containing the idea.log file.
I have re installed the Android Studio but still getting this error

Related

Android studio java.lang.NoClassDefFoundError: org/HdrHistogram/EncodableHistogram

I get this error whenever I try anything in the mainActivity.kt file
even in completely new projects (Kotlin)
just hitting enter to jump line brings this error
how do I fix this please ?

when i try for notification i'm getting error: cannot access Hide

when trying to add notification in mt app im getting this error
i tried Suddenly unable to build android studio project error: cannot access zzbcc
build-android-studio-project-error-cannot-access-zzbcc
and also Cannot access ActivityCompatApi23 class
activitycompatapi23-class?rq=1 but no use

Running Android Lint has encountered a... Failed. java.lang.NullPointerException

I just added Google Play Service Library to my project and when I am making a modification in one of my project files I am keep getting an error dialog from eclipse:
'Running Android Lint' has encountered a problem. Failed.
So, I enabled Error Log (Window -> Show View -> Error Log) tab and I found a warning and an error line:
Error:
Failed: com.android.ide.eclipse.adt
java.lang.NullPointerException
at com.android.tools.lint.checks.ApiDetector$ApiVisitor.checkField(ApiDetector.java:1416)
at com.android.tools.lint.checks.ApiDetector$ApiVisitor.visitSelect(ApiDetector.java:1277)
at com.android.tools.lint.client.api.JavaVisitor$DispatchVisitor.visitSelect(JavaVisitor.java:904)
at com.android.tools.lint.client.api.JavaVisitor$DelegatingJavaVisitor.visitSelect(JavaVisitor.java:1147)
at lombok.ast.Select.accept(Select.java:91)
at lombok.ast.MethodInvocation.accept(MethodInvocation.java:121)
at lombok.ast.ExpressionStatement.accept(ExpressionStatement.java:63)
at lombok.ast.Block.accept(Block.java:106)
at lombok.ast.MethodDeclaration.accept(MethodDeclaration.java:240)
at lombok.ast.NormalTypeBody.accept(NormalTypeBody.java:57)
at lombok.ast.ClassDeclaration.accept(ClassDeclaration.java:239)
at lombok.ast.CompilationUnit.accept(CompilationUnit.java:83)
at com.android.tools.lint.client.api.JavaVisitor.visitFile(JavaVisitor.java:219)
at com.android.tools.lint.client.api.LintDriver.checkIndividualJavaFiles(LintDriver.java:1624)
at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.java:993)
at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.java:869)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:442)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:363)
at com.android.ide.eclipse.adt.internal.lint.LintJob.run(LintJob.java:163)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
and a Warning:
Fatal Error: No API database found at null
An exception stack trace is not available.
My application is working, but it is annoying to close the dialog each time I make an edit and save.
This is a workaround (not exactly the solution). In Window > Preferences > Android > Lint Error Checking, uncheck "When saving files check for errors".
EDIT:
Please use the above steps only if you don't care about linting your code. These steps are for turning off Lint checking, not correcting the reported lint errors.
I would suggest for you to check on the warnings on your project. Resolving them one by one may get rid of the startup error.

Eclipse Error when booting up - "Error when loading the SDK"

I'm trying get a simple android application running.
Every time I boot up eclipse, I get the following error:
[2013-10-06 20:26:06 - Android SDK] Error when loading the SDK:
Error: Error parsing /android-sdk-macosx/tools/lib/devices.xml
cvc-elt.1: Cannot find the declaration of element 'd:layout-devices'.
I've had no success in fixing this. Is this something I need to fix before moving on?

parseSdkContent failed error in eclipse

When I opening eclipse it opens, but it shows one error i.e Android SDK content Loader has encountered a problem.parseSdkContent failed
When I click on details button, it shows me parseSdkContent failed java.lang.NullPointeException.
And when I tried to create AVD it shows error that Location of the android SDK has not been setup in the preferences while I have already set the path in preferences.
Please help me. Because of this issue my work is pending.
It's quite late to answer but I had a similar problem...
You can refer this Android L parseSdkContent failed Could not initialize class android.graphics.Typeface

Categories

Resources