Recently we ran into an issue with Intune when trying to upload an in-house developed line of business application for Android.

The symptoms seen are rather straightforward : when selecting the .apk file, the details like name, platform, version, etc. are not populated automatically and the OK button remains greyed out. As a result the application cannot be uploaded.

clip_image001

Clearly something is missing, but trying to pinpoint the root cause has turned out to be difficult. The actual requirements that an application must meet are, to my knowledge, not documented. This makes it very hard to determine the cause and provide any further details to the application developer in an attempt to further resolve this.

Getting this resolved (with the help from Microsoft support) was twofold :

First we needed to ensure the manifest included platformBuildVersionCode and platformBuildVersionName:

clip_image002

Still we could not upload the .apk until the developer ran through the following steps:

  • Put the following line in gradle.properties: android.enableAapt2=false
  • Restart the Gradle daemon by running ./gradlew –stop from the command line
  • Sync gradle settings

For the non-developer (like me) this does not say much, but at this point the .apk file could successfully be uploaded in Intune.

Hope it helps!

Tim

0 Shares:
You May Also Like