Support the android development in Cursor

In android project, there were many references which couldn’t been resolved.
remark: I had run this project successfully in android studio.

for example:
import android.os.Bundle
import android.os.Handler
import com.google.gson.annotations.SerializedName
import android.view.accessibility.AccessibilityNodeInfo

Unresolved reference: android kotlin UNRESOLVED_REFERENCE



Keep using both for now. Look for plugins and ask the Agent to help you debug your project easier with supplemental tools and scripts. Also update rules with fixed import requirements like “never add this import”, “never delete this import line” because there’s another issue with knowledge cutoff there.

Thanks for your reply. In fact, I only hope to fix the reminds from cursor, not for running the android project in cursor. Now I need to review the issue reminds in android studio, then ask the question in cursor, i think it wasn’t convenient for me. Usually there will be many issue reminds after generated some code by cursor.

Make sure you sync from Cursor to Android Studio. Install the necessary Android SDKs and tools on your system: you can continue running the code and debugging from Cursor and just use Android Studio to build your application. Basically, you’ll be using Android Studio to render the app and Cursor for coding.

Add this where it says Add New Rule:

This will save you time and help you.

@kleosr Thanks for your addtional kotlin rule, i will try it in my project, hopefully it can bring more efficiency.

1 Like

Before you continue, make sure that when you implement the Kotlin rules, you tell him to fix what ever syntax needs to be fixed If it is too big, make sure to do it in chunks between 300-500 lines.

Best of the best!