aws / lumberyard

Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch – with full source.
Other
2.04k stars 541 forks source link

Run project via Android Studio deploy it twice #477

Closed gitrndlab closed 4 years ago

gitrndlab commented 4 years ago

Describe the bug I observed that run project via Android Studio deploy and push assets to device twice.

Steps to reproduce

  1. Click Run project in Android Studio (Shift + F10).

Expected behavior Should just run it once.

Screenshots/Logs

Executing tasks: [:TestProjectLauncher:assembleAndroid_armv8_clangProfile] in project I:\Amazon\lumberyard\dev\Solutions\LumberyardAndroidSDK

Parallel execution is an incubating feature.

> Configure project :APKExpansionLibrary
Observed package id 'cmdline-tools;latest' in inconsistent location 'G:\android_sdk\tools' (Expected 'G:\android_sdk\cmdline-tools\latest')
Already observed package id 'cmdline-tools;latest' in 'G:\android_sdk\cmdline-tools\latest'. Skipping duplicate at 'G:\android_sdk\tools'

> Configure project :TestProjectLauncher
WARNING: ABIs [arm64-v8a,armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI, ARMEABI_V7A' not targeted by this project.
WARNING: ABIs [arm64-v8a,armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI, ARMEABI_V7A' not targeted by this project.
WARNING: ABIs [arm64-v8a,armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI, ARMEABI_V7A' not targeted by this project.
WARNING: ABIs [arm64-v8a,armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI, ARMEABI_V7A' not targeted by this project.

> Task :TestProjectLauncher:preBuild UP-TO-DATE
> Task :LicenseLibrary:preBuild UP-TO-DATE
> Task :APKExpansionLibrary:preBuild UP-TO-DATE
> Task :APKExpansionLibrary:preAndroid_armv8_clangProfileBuild UP-TO-DATE
> Task :LicenseLibrary:preAndroid_armv8_clangProfileBuild UP-TO-DATE
> Task :TestProjectLauncher:prepareLintJar UP-TO-DATE
> Task :APKExpansionLibrary:checkAndroid_armv8_clangProfileManifest UP-TO-DATE
> Task :LicenseLibrary:compileAndroid_armv8_clangProfileAidl NO-SOURCE
> Task :LicenseLibrary:packageAndroid_armv8_clangProfileRenderscript NO-SOURCE
> Task :APKExpansionLibrary:compileAndroid_armv8_clangProfileAidl NO-SOURCE
> Task :APKExpansionLibrary:generateAndroid_armv8_clangProfileBuildConfig UP-TO-DATE
> Task :LicenseLibrary:compileAndroid_armv8_clangProfileRenderscript UP-TO-DATE
> Task :LicenseLibrary:generateAndroid_armv8_clangProfileResValues UP-TO-DATE
> Task :LicenseLibrary:generateAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :APKExpansionLibrary:compileAndroid_armv8_clangProfileRenderscript UP-TO-DATE
> Task :APKExpansionLibrary:generateAndroid_armv8_clangProfileResValues UP-TO-DATE
> Task :APKExpansionLibrary:generateAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :LicenseLibrary:packageAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :LicenseLibrary:checkAndroid_armv8_clangProfileManifest UP-TO-DATE
> Task :APKExpansionLibrary:packageAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :LicenseLibrary:processAndroid_armv8_clangProfileManifest UP-TO-DATE
> Task :APKExpansionLibrary:processAndroid_armv8_clangProfileManifest UP-TO-DATE
> Task :APKExpansionLibrary:prepareLintJar UP-TO-DATE
> Task :APKExpansionLibrary:generateAndroid_armv8_clangProfileSources UP-TO-DATE
> Task :APKExpansionLibrary:processAndroid_armv8_clangProfileJavaRes NO-SOURCE
> Task :APKExpansionLibrary:packageAndroid_armv8_clangProfileRenderscript NO-SOURCE
> Task :APKExpansionLibrary:compileAndroid_armv8_clangProfileNdk NO-SOURCE
> Task :LicenseLibrary:generateAndroid_armv8_clangProfileRFile UP-TO-DATE
> Task :APKExpansionLibrary:mergeAndroid_armv8_clangProfileJniLibFolders UP-TO-DATE
> Task :LicenseLibrary:generateAndroid_armv8_clangProfileBuildConfig UP-TO-DATE
> Task :LicenseLibrary:prepareLintJar UP-TO-DATE
> Task :LicenseLibrary:generateAndroid_armv8_clangProfileSources UP-TO-DATE
> Task :LicenseLibrary:javaPreCompileAndroid_armv8_clangProfile UP-TO-DATE
> Task :APKExpansionLibrary:generateAndroid_armv8_clangProfileRFile UP-TO-DATE
> Task :LicenseLibrary:compileAndroid_armv8_clangProfileJavaWithJavac UP-TO-DATE
> Task :LicenseLibrary:processAndroid_armv8_clangProfileJavaRes NO-SOURCE
> Task :APKExpansionLibrary:transformNativeLibsWithMergeJniLibsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :LicenseLibrary:transformClassesAndResourcesWithPrepareIntermediateJarsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :APKExpansionLibrary:transformNativeLibsWithStripDebugSymbolForAndroid_armv8_clangProfile UP-TO-DATE
> Task :LicenseLibrary:compileAndroid_armv8_clangProfileNdk NO-SOURCE
> Task :APKExpansionLibrary:javaPreCompileAndroid_armv8_clangProfile UP-TO-DATE
> Task :LicenseLibrary:mergeAndroid_armv8_clangProfileJniLibFolders UP-TO-DATE
> Task :LicenseLibrary:transformNativeLibsWithMergeJniLibsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :LicenseLibrary:transformNativeLibsWithStripDebugSymbolForAndroid_armv8_clangProfile UP-TO-DATE
> Task :APKExpansionLibrary:compileAndroid_armv8_clangProfileJavaWithJavac UP-TO-DATE
> Task :LicenseLibrary:transformNativeLibsWithIntermediateJniLibsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :APKExpansionLibrary:transformClassesAndResourcesWithPrepareIntermediateJarsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :LicenseLibrary:mergeAndroid_armv8_clangProfileShaders UP-TO-DATE
> Task :APKExpansionLibrary:transformNativeLibsWithIntermediateJniLibsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :LicenseLibrary:compileAndroid_armv8_clangProfileShaders UP-TO-DATE
> Task :LicenseLibrary:generateAndroid_armv8_clangProfileAssets UP-TO-DATE
> Task :APKExpansionLibrary:mergeAndroid_armv8_clangProfileShaders UP-TO-DATE
> Task :LicenseLibrary:packageAndroid_armv8_clangProfileAssets UP-TO-DATE
> Task :APKExpansionLibrary:compileAndroid_armv8_clangProfileShaders UP-TO-DATE
> Task :APKExpansionLibrary:generateAndroid_armv8_clangProfileAssets UP-TO-DATE
> Task :LicenseLibrary:createFullJarAndroid_armv8_clangProfile UP-TO-DATE
> Transform full.jar (project :LicenseLibrary) with IdentityTransform
> Task :APKExpansionLibrary:packageAndroid_armv8_clangProfileAssets UP-TO-DATE
> Transform full.jar (project :LicenseLibrary) with DexingTransform
> Task :APKExpansionLibrary:createFullJarAndroid_armv8_clangProfile UP-TO-DATE
> Transform full.jar (project :APKExpansionLibrary) with IdentityTransform
> Transform full.jar (project :APKExpansionLibrary) with DexingTransform
> Task :TestProjectLauncher:preAndroid_armv8_clangProfileBuild UP-TO-DATE
> Task :TestProjectLauncher:compileAndroid_armv8_clangProfileAidl NO-SOURCE
> Task :TestProjectLauncher:compileAndroid_armv8_clangProfileRenderscript UP-TO-DATE
> Task :TestProjectLauncher:checkAndroid_armv8_clangProfileManifest UP-TO-DATE
> Task :TestProjectLauncher:generateAndroid_armv8_clangProfileBuildConfig UP-TO-DATE
> Task :TestProjectLauncher:generateAndroid_armv8_clangProfileSources UP-TO-DATE
> Task :TestProjectLauncher:javaPreCompileAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:mainApkListPersistenceAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:generateAndroid_armv8_clangProfileResValues UP-TO-DATE
> Task :TestProjectLauncher:generateAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :TestProjectLauncher:mergeAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :TestProjectLauncher:createAndroid_armv8_clangProfileCompatibleScreenManifests UP-TO-DATE
> Task :TestProjectLauncher:processAndroid_armv8_clangProfileManifest UP-TO-DATE
> Task :TestProjectLauncher:processAndroid_armv8_clangProfileResources UP-TO-DATE
> Task :TestProjectLauncher:compileAndroid_armv8_clangProfileJavaWithJavac UP-TO-DATE
> Task :TestProjectLauncher:generateJsonModelAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:externalNativeBuildAndroid_armv8_clangProfile UP-TO-DATE

> Task :TestProjectLauncher:buildAndroid_armv8_clangProfileWaf
[WAF] Engine Root: I:\Amazon\lumberyard\dev\
[WAF] Executing 'build_android_armv8_clang_profile' in 'i:\Amazon\lumberyard\dev\BinTemp\android_armv8_clang_profile'
[SETTINGS] deploy_android = False (default True) 
[SETTINGS] Target Output folder (android_armv8_clang/profile): BinAndroidArmv8Clang 
[WARNING] Incredibuild disabled by build option
[WARN] Invalid module 'AmazonQtControlGallery' in spec 'all'
[WARN] Invalid module 'LyIdentity_shared' in spec 'all'
[WARN] Invalid module 'LyIdentity_static' in spec 'all'
[WARN] Invalid module 'LyInstallerMetrics' in spec 'all'
[WARN] Invalid module 'LyMetricsConsumer' in spec 'all'
[WARN] Invalid module 'LyMetricsProducer_python' in spec 'all'
[WARN] Invalid module 'LyMetricsProducer_shared' in spec 'all'
[WARN] Invalid module 'LyMetricsProducer_static' in spec 'all'
[WARN] Invalid module 'LyMetricsShared_shared' in spec 'all'
[WARN] Invalid module 'LyMetricsShared_static' in spec 'all'
[WARN] Invalid module 'LyzardGems' in spec 'all'
[WARN] Invalid module 'LyzardEngines' in spec 'all'
[WARN] Invalid module 'LyzardProjects' in spec 'all'
[WARN] Invalid module 'NewsBuilder' in spec 'all'
[WARN] Invalid module 'ToolsCrashUploader' in spec 'all'
[WARN] Invalid module 'SerializeContextTools' in spec 'all'
[WARN] Invalid module 'DeltaCataloger' in spec 'all'
[WARN] Module use dependency 'CrashHandler' for target 'CrySystem' refers to an invalid module
[WARN] Module use dependency 'billing' for target 'InAppPurchases' refers to an invalid module
[WAF] 'build_android_armv8_clang_profile' finished successfully (1m25.195s)
[WAF] Executing 'package_android_armv8_clang_profile'
[WAF] 'package_android_armv8_clang_profile' finished successfully (2.016s)
[WAF] Executing 'deploy_android_armv8_clang_profile'
[INFO] Starting to deploy to android device 5f5565c9 
[INFO] Cleaning target before deployment... 
[INFO] Target Cleaned... 
[INFO] Uninstalling package com.lumberyard.yourgame 
[INFO] Copying all assets to the device 5f5565c9. This may take some time... 
[WAF] 'deploy_android_armv8_clang_profile' finished successfully (48.620s)

> Task :TestProjectLauncher:compileAndroid_armv8_clangProfileSources UP-TO-DATE
> Task :TestProjectLauncher:mergeAndroid_armv8_clangProfileShaders UP-TO-DATE
> Task :TestProjectLauncher:compileAndroid_armv8_clangProfileShaders UP-TO-DATE
> Task :TestProjectLauncher:generateAndroid_armv8_clangProfileAssets UP-TO-DATE
> Task :TestProjectLauncher:mergeAndroid_armv8_clangProfileAssets UP-TO-DATE
> Task :TestProjectLauncher:mergeExtDexAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:mergeLibDexAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:transformClassesWithDexBuilderForAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:mergeProjectDexAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:validateSigningAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:signingConfigWriterAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:mergeAndroid_armv8_clangProfileJniLibFolders UP-TO-DATE
> Task :TestProjectLauncher:transformNativeLibsWithMergeJniLibsForAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:transformNativeLibsWithStripDebugSymbolForAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:processAndroid_armv8_clangProfileJavaRes NO-SOURCE
> Task :TestProjectLauncher:transformResourcesWithMergeJavaResForAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:packageAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:assembleAndroid_armv8_clangProfile UP-TO-DATE
> Task :TestProjectLauncher:copyAndroid_armv8_clangProfileApk UP-TO-DATE

> Task :TestProjectLauncher:deployAndroid_armv8_clangProfileWaf
[WAF] Engine Root: I:\Amazon\lumberyard\dev\
[WAF] Executing 'deploy_android_armv8_clang_profile'
[WARN] Invalid module 'AmazonQtControlGallery' in spec 'all'
[WARN] Invalid module 'LyIdentity_shared' in spec 'all'
[WARN] Invalid module 'LyIdentity_static' in spec 'all'
[WARN] Invalid module 'LyInstallerMetrics' in spec 'all'
[WARN] Invalid module 'LyMetricsConsumer' in spec 'all'
[WARN] Invalid module 'LyMetricsProducer_python' in spec 'all'
[WARN] Invalid module 'LyMetricsProducer_shared' in spec 'all'
[WARN] Invalid module 'LyMetricsProducer_static' in spec 'all'
[WARN] Invalid module 'LyMetricsShared_shared' in spec 'all'
[WARN] Invalid module 'LyMetricsShared_static' in spec 'all'
[WARN] Invalid module 'LyzardGems' in spec 'all'
[WARN] Invalid module 'LyzardEngines' in spec 'all'
[WARN] Invalid module 'LyzardProjects' in spec 'all'
[WARN] Invalid module 'NewsBuilder' in spec 'all'
[WARN] Invalid module 'ToolsCrashUploader' in spec 'all'
[WARN] Invalid module 'SerializeContextTools' in spec 'all'
[WARN] Invalid module 'DeltaCataloger' in spec 'all'
[WARN] Module use dependency 'CrashHandler' for target 'CrySystem' refers to an invalid module
[WARN] Module use dependency 'billing' for target 'InAppPurchases' refers to an invalid module
[INFO] Starting to deploy to android device 5f5565c9 
[INFO] Cleaning target before deployment... 
[INFO] Target Cleaned... 
[INFO] Uninstalling package com.lumberyard.yourgame 
[INFO] Copying all assets to the device 5f5565c9. This may take some time... 
[WAF] 'deploy_android_armv8_clang_profile' finished successfully (49.968s)

BUILD SUCCESSFUL in 3m 10s
69 actionable tasks: 2 executed, 67 up-to-date

Please Focus on this twice lines: [INFO] Copying all assets to the device 5f5565c9. This may take some time...

Lumberyard version 1.23.1 with fix from issue 472.

AMZN-alexpete commented 4 years ago

Hi @researchdeveloping, thanks for submitting this issue. We've created a fix internally and will ship it in a future release of Lumberyard. LY-112664