Skip to content

Conversation

@dellis1972
Copy link
Contributor

Once again we hit an issue where the apksigner.bat file provided
with android build-tools was not functioning correctly. So like
we did with dx.bat and other tooling we should switch to using
the apksigner.jar file directly.

Additionally JDK 9 has removed support for the java.ext.dirs, which
all versions of the apksigner.bat use. As a result this tool will
not work with JDK 9. So its best to remove it now.

We have existing unit tests which check that the Apk is being
signed correctly. So not additional tests are required.

…ectly.

Once again we hit an issue where the `apksigner.bat` file provided
with android build-tools was not functioning correctly. So like
we did with `dx.bat` and other tooling we should switch to using
the `apksigner.jar` file directly.

Additionally JDK 9 has removed support for the `java.ext.dirs`, which
all versions of the `apksigner.bat` use. As a result this tool will
not work with JDK 9. So its best to remove it now.

We have existing unit tests which check that the Apk is being
signed correctly. So not additional tests are required.
@dellis1972 dellis1972 added this to the d15-7 milestone Jan 23, 2018
@dellis1972 dellis1972 added the Area: App+Library Build Issues when building Library projects or Application projects. label Jan 23, 2018
StorePass="$(_ApkStorePass)"
ToolPath="$(AndroidSdkBuildToolsBinPath)"
ToolExe="$(ApkSignerToolExe)"
ToolPath="$(JavacToolPath)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this should be $(JavaToolPath), and the following line $(JavaToolExe), not Javac.

@jonpryor jonpryor merged commit b28a93a into dotnet:master Jan 24, 2018
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Aug 26, 2021
Changes: https://github.com/xamarin/monodroid/compare/fb0d502139bc222d4e9ad82f912b1c6f1d4ca34e...5676b84b411c39454cb52499613b936078834924

  * xamarin/monodroid@5676b84b4: Bump to xamarin/androidtools/main@0abc0d7c (dotnet#1223)
  * xamarin/monodroid@daf1aa909: [optimization] Replace 'new T[0]' with 'Array.Empty<T> ()' to reduce allocations. (dotnet#1221)
  * xamarin/monodroid@fb848118b: [tools/msbuild] Check `device.Properties.BuildVersionSdk` for `-1` (dotnet#1222)
  * xamarin/monodroid@489a389d1: [tools/msbuild] Check device additional output to see if its the same device. (dotnet#1218)
  * xamarin/monodroid@209a7c352: [tests/AndroidMSBuildTests] Remove Unused Unit Tests (dotnet#1215)
jonpryor added a commit that referenced this pull request Aug 27, 2021
Changes: https://github.com/xamarin/monodroid/compare/fb0d502139bc222d4e9ad82f912b1c6f1d4ca34e...5676b84b411c39454cb52499613b936078834924

  * xamarin/monodroid@5676b84b4: Bump to xamarin/androidtools/main@0abc0d7c (#1223)
  * xamarin/monodroid@daf1aa909: [optimization] Replace 'new T[0]' with 'Array.Empty<T> ()' to reduce allocations. (#1221)
  * xamarin/monodroid@fb848118b: [tools/msbuild] Check `device.Properties.BuildVersionSdk` for `-1` (#1222)
  * xamarin/monodroid@489a389d1: [tools/msbuild] Check device additional output to see if its the same device. (#1218)
  * xamarin/monodroid@209a7c352: [tests/AndroidMSBuildTests] Remove Unused Unit Tests (#1215)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Area: App+Library Build Issues when building Library projects or Application projects.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants