admin管理员组

文章数量:1026989

I'm new to here. Sorry for my bad English. I just tried to build empty project named Game Activity (C++) using Android Studio Meerkat | 2024.3.1 Canary 2 and got this error.

----------------------------------------------------------------------------------

java.lang.IllegalStateException: Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType@xxxxxx is not registered as JpsModelSerializerExtension

----------------------------------------------------------------------------------

Basically I search the error descriptions with Google. This doesn't exist at all.

It seems that the problem is kotlin and ndk. I don't know.

What is JpsModelSerializerExtension?

What should I do for it?

Help please.

I searched Google for an hour.

I expect to get how to fix the settings of Android studio, and the project built successfully.

I'm new to here. Sorry for my bad English. I just tried to build empty project named Game Activity (C++) using Android Studio Meerkat | 2024.3.1 Canary 2 and got this error.

----------------------------------------------------------------------------------

java.lang.IllegalStateException: Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType@xxxxxx is not registered as JpsModelSerializerExtension

----------------------------------------------------------------------------------

Basically I search the error descriptions with Google. This doesn't exist at all.

It seems that the problem is kotlin and ndk. I don't know.

What is JpsModelSerializerExtension?

What should I do for it?

Help please.

I searched Google for an hour.

I expect to get how to fix the settings of Android studio, and the project built successfully.

Share Improve this question edited Mar 17 at 17:22 ayuumu nyasu asked Nov 16, 2024 at 16:32 ayuumu nyasuayuumu nyasu 312 bronze badges 1
  • How can the issue be kotlin and ndk? Can you share the most relevant code and configurations. – ryanwebjackson Commented Nov 16, 2024 at 21:57
Add a comment  | 

3 Answers 3

Reset to default 0

I solved it by disabling the Android SDK Support plugin.
Go to Settings -> Plugins -> Installed -> Uncheck the Android SDK Support plugin.

Issue #378453263 has solved:

Update:

Android Studio Meerkat | 2024.3.1 Canary 3

Android Gradle Plugin 8.9.0-alpha03

I had the same issue, this what worked for me.

In Android Studio, go to File > Invalidate Caches / Restart
- Select all options,
click invalidate and restart.
- After restarting, sync the project with Gradle.

Hope this works for you too.

I'm new to here. Sorry for my bad English. I just tried to build empty project named Game Activity (C++) using Android Studio Meerkat | 2024.3.1 Canary 2 and got this error.

----------------------------------------------------------------------------------

java.lang.IllegalStateException: Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType@xxxxxx is not registered as JpsModelSerializerExtension

----------------------------------------------------------------------------------

Basically I search the error descriptions with Google. This doesn't exist at all.

It seems that the problem is kotlin and ndk. I don't know.

What is JpsModelSerializerExtension?

What should I do for it?

Help please.

I searched Google for an hour.

I expect to get how to fix the settings of Android studio, and the project built successfully.

I'm new to here. Sorry for my bad English. I just tried to build empty project named Game Activity (C++) using Android Studio Meerkat | 2024.3.1 Canary 2 and got this error.

----------------------------------------------------------------------------------

java.lang.IllegalStateException: Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType@xxxxxx is not registered as JpsModelSerializerExtension

----------------------------------------------------------------------------------

Basically I search the error descriptions with Google. This doesn't exist at all.

It seems that the problem is kotlin and ndk. I don't know.

What is JpsModelSerializerExtension?

What should I do for it?

Help please.

I searched Google for an hour.

I expect to get how to fix the settings of Android studio, and the project built successfully.

Share Improve this question edited Mar 17 at 17:22 ayuumu nyasu asked Nov 16, 2024 at 16:32 ayuumu nyasuayuumu nyasu 312 bronze badges 1
  • How can the issue be kotlin and ndk? Can you share the most relevant code and configurations. – ryanwebjackson Commented Nov 16, 2024 at 21:57
Add a comment  | 

3 Answers 3

Reset to default 0

I solved it by disabling the Android SDK Support plugin.
Go to Settings -> Plugins -> Installed -> Uncheck the Android SDK Support plugin.

Issue #378453263 has solved:

Update:

Android Studio Meerkat | 2024.3.1 Canary 3

Android Gradle Plugin 8.9.0-alpha03

I had the same issue, this what worked for me.

In Android Studio, go to File > Invalidate Caches / Restart
- Select all options,
click invalidate and restart.
- After restarting, sync the project with Gradle.

Hope this works for you too.

本文标签: