Skip to content

Cant export signed bundle / package and default SDK does not work out of the box #781

@trackme518

Description

@trackme518

OS: MacOS Tahoe M4

When i try to export signed package I get error:

The keystore could not be created, due to the following error:
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.


Build folder: /var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.0) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33
> Task :app:preBuild UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseResValues
> Task :app:generateReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :app:processReleaseMainManifest
> Task :app:processReleaseManifest
> Task :app:processApplicationManifestReleaseForBundle
> Task :app:compileReleaseAidl NO-SOURCE
> Task :app:generateReleaseBuildConfig
> Task :app:javaPreCompileRelease
> Task :app:checkReleaseAarMetadata
> Task :app:checkReleaseDuplicateClasses
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseAssets
> Task :app:processReleaseJavaRes NO-SOURCE
> Task :app:mergeReleaseJniLibFolders
> Task :app:mergeReleaseNativeLibs
> Task :app:mergeReleaseResources
> Task :app:collectReleaseDependencies
> Task :app:mergeReleaseJavaResource

> Task :app:stripReleaseDebugSymbols
Unable to strip the following libraries, packaging them as they are: libarcore_sdk_c.so, libarcore_sdk_jni.so.

> Task :app:configureReleaseDependencies

> Task :app:extractReleaseNativeSymbolTables
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libarcore_sdk_c.so because unable to locate the objcopy executable for the armeabi-v7a ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/armeabi-v7a/libarcore_sdk_jni.so because unable to locate the objcopy executable for the armeabi-v7a ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/x86/libarcore_sdk_c.so because unable to locate the objcopy executable for the x86 ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/x86/libarcore_sdk_jni.so because unable to locate the objcopy executable for the x86 ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libarcore_sdk_c.so because unable to locate the objcopy executable for the arm64-v8a ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libarcore_sdk_jni.so because unable to locate the objcopy executable for the arm64-v8a ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libarcore_sdk_c.so because unable to locate the objcopy executable for the x86_64 ABI.
Unable to extract native debug metadata from /private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/build/intermediates/merged_native_libs/release/out/lib/x86_64/libarcore_sdk_jni.so because unable to locate the objcopy executable for the x86_64 ABI.

> Task :app:processReleaseManifestForPackage
> Task :app:parseReleaseIntegrityConfig
> Task :app:writeReleaseAppMetadata
> Task :app:mergeReleaseArtProfile
> Task :app:validateSigningRelease FAILED
> Task :app:bundleReleaseResources
> Task :app:processReleaseResources
> Task :app:desugarReleaseFileDependencies

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningRelease'.
> Keystore file '/private/var/folders/yq/13vj8vws7zv4kfcp4t2_hq8w0000gn/T/android11567373255389557936sketch/app/@@keystore_file@@' not found for signing config 'release'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
28 actionable tasks: 28 executed
org.gradle.tooling.BuildException: Could not execute build using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.2-bin.zip'.

Also the default SDK updater downloaded android-33-ext5 and it was unable to produce build that would run on device.
First I needed to actually sign the licence (built in Processing tool did not work for this):
cd /Users/username/Documents/Processing/android/sdk/cmdline-tools/latest/bin
./sdkmanager --licenses

Instead I have to manually put JAVA on path using:

find /Applications/Processing.app -name java -type f
export JAVA_HOME="/Applications/Processing.app/Contents/app/resources/jdk"
export PATH="$JAVA_HOME/bin:$PATH"

Then manually downloaded android-33:

cd /Users/username/Documents/Processing/android/sdk/cmdline-tools/latest/bin
./sdkmanager "platforms;android-33"

Also install:

./sdkmanager "build-tools;30.0.3"
./sdkmanager "platform-tools"
./sdkmanager "build-tools;30.0.3"

Then I was able to run sketch on device. But the build fails. It actually fails to generate keystore in Processing/android/keystore (empty folder)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions