使用Android应用程序 Package 工具运行Invoke-AppWrappingTool时出错

mxg2im7a  于 2023-04-04  发布在  Android
关注(0)|答案(2)|浏览(119)

我无法使用Wrapping tool Package 我的Android应用程序。
当我运行以下命令时:

Invoke-AppWrappingTool -InputPath C:\...... -OutputPath C:\output.... -KeyStorePath ......

我收到以下错误:

Application wrapping in progress. App Wrapping Tool Version:
1.0.1933.1
    Failed to package app.
            com.microsoft.intune.mam.apppackager.utils.AppPackagerException:
Failed to update this app's supported SDK versi
    ons.
                    com.microsoft.intune.mam.apppackager.utils.YamlManifestUtils.updateAppSupportedSdkRange(YamlManifestUtil
    s.java:324)
                    com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapManifest(V2WrapperAgent.java:86)
                    com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68)

com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:132)
                   com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:198)

com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:56)
            com.microsoft.intune.mam.apppackager.utils.AppPackagerException: This
app's target SDK is above the MAM target S
    DK. Please upgrade to the newest version of the App Wrapping Tool.
                    com.microsoft.intune.mam.apppackager.utils.YamlManifestUtils.updateAppSupportedSdkRange(YamlManifestUtil
    s.java:305)
                    com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapManifest(V2WrapperAgent.java:86)
                    com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68)
                    com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:132)
                    com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:198)
                   com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:56)
    The application could not be wrapped.

我用的是targetSdkVersion 26compileSdkVersion 25

bvn4nwqk

bvn4nwqk1#

标签:Please upgrade to the newest version of the App Wrapping Tool.
...可以找到here

6za6bjd0

6za6bjd02#

您的targetSdkVersion 26和compileSdkVersion 25.however它应该大于28,即9或以上。然后它将工作

相关问题