I was actually compiling an android project using maven. When I use plugin Dexguard ,it shows this 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>