【问题标题】:dexguard maven ERROR INVALID SDKdexguard maven 错误无效 SDK
【发布时间】: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


    【解决方案1】:

    您可能已在正确的位置安装和配置了 android SDK,但错误中提到尚未安装平台 22 的 API。使用 sdkmanager 安装正确的平台 API。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-05
      • 1970-01-01
      • 2023-04-11
      相关资源
      最近更新 更多