question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to open the plugin in Android Studio: gradle fails

See original GitHub issue

Hey there,

I am trying to open and build the plugin in Android Studio, however I am always getting this error which prevents me from building the project.

A problem occurred configuring project ':app'.
> java.lang.NullPointerException (no error message)

Any idea how to fix it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bdelocommented, Feb 26, 2021

On windows I was getting a warning along with this of a missing platforms directory in X:/MyUser/AppData/Local/Android/sdk/ndk-bundle. Adding an empty platforms folder to this directory fixed this NullPointerException error for me.

1reaction
IanPhilipscommented, Nov 8, 2021

On windows I was getting a warning along with this of a missing platforms directory in X:/MyUser/AppData/Local/Android/sdk/ndk-bundle. Adding an empty platforms folder to this directory fixed this NullPointerException error for me.

This indeed solved my problem, this time w/ a fresh computer. Insert your user name and run (on mac): mkdir /Users/{your_user_name}/Library/Android/sdk/ndk-bundle/platforms

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error running android: Gradle project sync failed. Please fix ...
Go to File -> Invalidate Caches/Restart · Shutdown Android Studio · Rename/remove your .gradle folder in the user home directory · Restart Android ......
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix the issue for the current project, click Run > Edit Configurations and change the default JUnit configuration to only include the...
Read more >
Different Ways to fix "Error running android: Gradle project ...
Method 1: Restarting your project using Invalidate Caches and Restart option ; Method 2: Sync your project with Gradle files ; Method 3:...
Read more >
How to fix ' Gradle Project Sync Failed in Android studio '.
Today, in this video i will show you how to fix ' Gradle Project Sync Failed in Android studio '. To fix this...
Read more >
How To Fix Gradle Project Sync Failed in Android studio
... sync failed android studio Article to Download and Install Gradle Versions : https://codeprofessionally.com/download-and-install- gradle ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found