Skip to content

BundleTool - Failing when deploying to Pixel 6 running latest Android 14 beta. #8368

Description

@gmck

Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.)

Affected platform version

VS 2022 17.8.0 Prev 2.0

Description

Done executing task "BuildApkSet" -- FAILED.

Steps to Reproduce

Deploy app. Get the following

Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found.
com.android.tools.build.bundletool.model.exceptions.AdbOutputParseException: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found.
	at com.android.tools.build.bundletool.model.exceptions.InternalExceptionBuilder.build(InternalExceptionBuilder.java:57)
	at com.android.tools.build.bundletool.device.GlExtensionsParser.parse(GlExtensionsParser.java:72)
	at com.android.tools.build.bundletool.device.DdmlibDevice.getGlExtensions(DdmlibDevice.java:147)
	at com.android.tools.build.bundletool.device.DeviceAnalyzer.getDeviceSpec(DeviceAnalyzer.java:62)
	at com.android.tools.build.bundletool.commands.BuildApksModule.provideDeviceSpec(BuildApksModule.java:126)
	at com.android.tools.build.bundletool.commands.BuildApksModule_ProvideDeviceSpecFactory.provideDeviceSpec(BuildApksModule_ProvideDeviceSpecFactory.java:36)
	at com.android.tools.build.bundletool.commands.BuildApksModule_ProvideDeviceSpecFactory.get(BuildApksModule_ProvideDeviceSpecFactory.java:27)
	at com.android.tools.build.bundletool.commands.BuildApksModule_ProvideDeviceSpecFactory.get(BuildApksModule_ProvideDeviceSpecFactory.java:10)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.android.tools.build.bundletool.commands.DaggerBuildApksManagerComponent.create(DaggerBuildApksManagerComponent.java:202)
	at com.android.tools.build.bundletool.commands.BuildApksCommand.execute(BuildApksCommand.java:699)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:77)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)
The command exited with code 1.
Done executing task "BuildApkSet" -- FAILED.

For some reason, I can't attach the log file either txt or zip of the build!

Did you find any workaround?

Deploys OK to other devices

Relevant log output

No response

Activity

  1. added
    Area: App+Library BuildIssues when building Library projects or Application projects.
    needs-triageIssues that need to be assigned.
    on Sep 23, 2023
  2. gmck commented on Sep 23, 2023

    @gmck
    Author
  3. dellis1972 commented on Sep 25, 2023

    @dellis1972
    Contributor

    This looks like an issue with bundletool querying the device for information. My guess is try a different bundletool? There is probably a bug in it somewhere.

  4. gmck commented on Sep 25, 2023

    @gmck
    Author

    @dellis1972
    Where does one get a different bundle tool?

  5. dellis1972 commented on Sep 25, 2023

    @dellis1972
    Contributor

    This is the area where you can get releases https://mvnrepository.com/artifact/com.android.tools.build/bundletool.
    Not sure which one would work though.

    If you want to use your own you will need to override the AndroidBundleToolJarPath msbuild property.

  6. gmck commented on Sep 26, 2023

    @gmck
    Author

    @dellis1972
    How do you tell which version VS2022 is using? The build doesn't emit a version number that I could find.

  7. dellis1972 commented on Sep 27, 2023

    @dellis1972
    Contributor

    java -jar <path to bundletool.jar> version

    I'm not sure what the path will be, you'll need to look in the logs to find it as its burried in the sdk packs folder somewhere.

  8. jpobst commented on May 17, 2024

    @jpobst
    Contributor

    With support for Classic Xamarin.Android ended May 1st, 2024, this issue is likely no longer relevant.

    If this still persists in .NET 8+, please open a new issue with updated information based on net8.0-android or greater. Please include a link to this issue for context.

  9. locked and limited conversation to collaborators on Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions