kotlin - Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType is not registered as JpsMo

I'm new to here. Sorry for my bad English.I just tried to build empty project named Game Activity

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745652040a4638323.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信