gpt4 book ai didi

android - 为什么mvn android :lint skips sub modules?

转载 作者:行者123 更新时间:2023-11-30 03:38:46 25 4
gpt4 key购买 nike

为什么 android:lint 只扫描我的聚合器项目以获取 Lint 警告并跳过“APP”模块?

在我定义的APP模块的POM中:

    <plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>


<executions>
<execution>
<id>lint</id>
<goals>
<goal>lint</goal>
</goals>
<phase>install</phase>
</execution>
</executions>

<configuration>
<sdk>
<platform>${android.platform}</platform>
</sdk>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>

<sign>
<debug>true</debug>
</sign>
<lint>
<skip>false</skip>
</lint>

<undeployBeforeDeploy>true</undeployBeforeDeploy>
<zipalign>
<skip>false</skip>
<verbose>true</verbose>
<inputApk>${project.build.directory}/${project.artifactId}.apk</inputApk>
<outputApk>${project.build.directory}/${project.artifactId}-aligned.apk</outputApk>
</zipalign>
</configuration>
</plugin>

干杯

最佳答案

我不认为我们已经实现了它以这种方式在多模块构建中工作。但是,您只需在聚合器中配置插件并在 apk 项目中执行即可。

关于android - 为什么mvn android :lint skips sub modules?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16196900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com