【发布时间】:2018-01-05 09:50:47
【问题描述】:
我实际上是在使用 maven 编译一个 android 项目。当我使用插件 Dexguard 时,它显示了这个 error :
Failed to execute goal com.guardsquare.dexguard.maven:dexguard-maven-plugin:8.1.00:generate-sources (default-generate-sources) on project .....: Execution default-generate-sources of goal com.guardsquare.dexguard.maven:dexguard-maven-plugin:8.1.00:generate-sources failed: Invalid SDK: Platform/API level 22 not available.
sdk android is installed correctly img
<plugin>
<groupId>com.guardsquare.dexguard.maven</groupId>
<artifactId>dexguard-maven-plugin</artifactId>
<configuration>
<sdk>
<platform>22</platform>
</sdk>
<resourceDirectory>${project.parent.basedir}/mb-face-android-tablet-ui/res</resourceDirectory>
<androidManifestFile>${project.parent.basedir}/mb-face-android-tablet-ui/AndroidManifest.xml</androidManifestFile>
<dexguardConfig>${project.parent.basedir}/mb-face-android-tablet-ui/dexguard-project.txt</dexguardConfig>
</configuration>
</plugin>
【问题讨论】:
标签: android maven pom.xml dexguard