English 中文(简体)
kaptGenerateStubsDebugKotlin FAILED e: 无法装载模块<电子模块> - 安信室项目
原标题:kaptGenerateStubsDebugKotlin FAILED e: Could not load module <Error module> - Android Studio Project
  • 时间:2023-05-15 06:48:14
  •  标签:
  • android
最佳回答

就我而言,我也存在同样的错误,没有使用的类别,它有一些错误的进口。 我删除了这一类别,重新设计,然后,这一“错误模块”信息得以建立,并试图在你的项目中履行:Analyze Code,你可能发现问题是什么。

我也阅读了其他一些论坛,有些是面临同一问题的gu,因为这个论坛产生了编码缺失的进口品,因此,你还可能试图通过你的项目中产生的编码,并检查那里缺少的进口。

问题回答

Solution: Android Studio can t found out bad import. The problem was in one of the files. Old imports which are not contains in the application I had to find it manually

就我而言,我使用导航部件,配备了安全动力,我正在通过一种可以破碎的习俗。 然而,当我更改了该可塑炸药的包装名称时,我不得不人工改动。

Had the same problem. e: Could not load module In my case it was missing import in one of the refactored files. I was able to find it after crawling manually over each file. Idea finally showed red line error. Weird that you cant find it in analyze code or problems report in Intellij.

Here is my solution for future cases. go to build gradle and disable kapt plugin and all kapt related imports like mapstruct etc.

当你现在执行梯度时,你就会发现错误。 ix

措施问题是民主选举学会在建筑过程中发现的错误进口。 我认为,通过执行测试任务,测试必须进行,而国际民主和选举援助学会向我展示了错误的进口。

我们刚刚触及这一问题——它涉及Moshi,后者使用了kapt。 解决办法是调查我们的科特林档案,确定Moshi物体以发现错误。

这个问题很可能出现在导航上。 可能的话,在争论中提及某些类别是错误的。 由于安德森·演播室无法提供这一档案。

Just had this error, I recently implemented an AsyncResult sealed class following this guide: https://blog.devgenius.io/kotlin-sealed-class-with-generic-covariance-7e33875e7002

问题在于我意外地通过了<代码>。 任何“通用至Nothing,如AsyncResult。 Error<Any>,而不是仅限AsyncResult。 Error

我曾提出过这个问题,但我却试图在我的编目中宣布一个论点是不允许的两倍。 我用浮体替换了两倍。

I replaced this:

<argument
        android:name=""
        app:argType="double" />

With this:

<argument
        android:name=""
        app:argType="float" />

In my case it was

<argument
    android:name="quantity"
    android:defaultValue="-1"
    app:argType="int" />

而不是

<argument
    android:name="quantity"
    android:defaultValue="-1"
    app:argType="integer" />

1.5小时

我可以证实,我确实 st着这一点,但对于我来说,这是我刚才删除的一类,而“陈词典”删除了这些提法!

甚至连码分析工具或编码检查都没有运行。 我不得不绕过我正在做的法典,然后,当我打开档案时,红线显示了缺失的参考资料!

希望这一帮助!

在我的特殊情况下,我最近更新了安乐施室,在试图管理格拉斯大楼时,我遇到了与“<条码>>迅速{生成Stubs = 真实}配置有关的错误。

然而,必须指出,这一卡普切(1)会产生这种影响。 Stubs = 真正的}误差信息不是建筑故障的实际根源。

基本问题涉及参数的编号:被转至另一个类别,即“GisModel”的职能,特别是可装的功能。 有趣的是,Series don t直接强调了这一具体问题。 相反,它提出了<代码>kapt{生成Stubs = 真的}错误,最初导致在分解过程中出现一些混乱。

我也存在同样的问题,在创造了新的惠物之后,我认识到,我们错过了增加lav夫的依赖。

In my case it was a Studio module not being updated. Individual Android studio modules were tracked by git submodules in our project and after a pull I had not updated the submodules. Running git submodule update solved it.

in my case I also had problem with imports. Build log helped me to localise the problem - it referenced the module where I was having the problem. If you are working with any CVS, try checking the latest changes, it may help.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签