08-18-2017 10:16 AM
Hi,
I'm using Unity 2017.2b but this error also occurred in 2017.1. I'm trying to build an APK for distribution in the Oculus store. Signed APKs nowadays are generated using Signature Scheme V2, which Oculus does not support. The Android documentation says that in order to use V1, you must add "v2SigningEnabled false" to your Gradle file.
I switched the build system to Gradle, and made a custom Gradle file. Beneath defaultConfigs, I added:
signingConfigs {
release {
storeFile file("myreleasekey.keystore")
storePassword "mypassword"
keyAlias "MyReleaseKey"
keyPassword "mypassword"
v2SigningEnabled false
}
}
Gradle complains that it cannot find "v2SigningEnabled". Full error message here.
Has anyone run into this before? How did you sign your app for Oculus?
08-18-2017 05:07 PM
08-19-2017 06:16 PM
apksigner verify -v ./yourbinary.apk
Then using this command it changes the signatures from v2 to v1:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name
The keystore was made in Unity
04-05-2018 07:27 AM
01-18-2019 08:07 AM
10-23-2019 10:31 PM
12-13-2019 12:54 PM