Scrcpy: DEPRECATION: build_always is deprecated

Created on 20 Jul 2018  路  13Comments  路  Source: Genymobile/scrcpy

Environment: Fedora 28
Meson: 0.47.1

> meson x --buildtype release --strip -Db_lto=true
...
DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale instead.
build help wanted meson todo

All 13 comments

Hi, wanted to know if this is being worked on or just added to todo and left there?
thanks

I am currently no working on it. If you want to, please do :)

It just must not require a newer version of _meson_ (so it must still work with _meson 0.37_).

@rom1v could you make it conditional, depending on the version of Meson?

@eku yes that's probably the solution

I tried to check the version:

diff --git a/server/meson.build b/server/meson.build
index 202ec3a..3bf55e9 100644
--- a/server/meson.build
+++ b/server/meson.build
@@ -2,13 +2,28 @@
 # to build. If the 'prebuilt_server' option is set, just copy the file as is.
 prebuilt_server = get_option('prebuilt_server')
 if prebuilt_server == ''
-    custom_target('scrcpy-server',
-                  build_always: true,  # gradle is responsible for tracking source changes
-                  input: '.',
-                  output: 'scrcpy-server.jar',
-                  command: [find_program('./scripts/build-wrapper.sh'), '@INPUT@', '@OUTPUT@', get_option('buildtype')],
-                  install: true,
-                  install_dir: 'share/scrcpy')
+    buildtype = get_option('buildtype')
+    command = [find_program('./scripts/build-wrapper.sh'), '@INPUT@', '@OUTPUT@', buildtype]
+
+    if meson.version().version_compare('>=0.40.0')
+        custom_target('scrcpy-server',
+                      build_by_default: true,  # gradle is responsible for tracking source changes
+                      build_always_stale: true,
+                      input: '.',
+                      output: 'scrcpy-server.jar',
+                      command: command,
+                      install: true,
+                      install_dir: 'share/scrcpy')
+    else
+        custom_target('scrcpy-server',
+                      build_always: true,  # gradle is responsible for tracking source changes
+                      input: '.',
+                      output: 'scrcpy-server.jar',
+                      command: command,
+                      install: true,
+                      install_dir: 'share/scrcpy')
+    endif
+
 else
     custom_target('scrcpy-server-prebuilt',
                   input: prebuilt_server,

While the documentation says that build_by_default was added in 0.38, it seems it requires 0.40 actually.

It seems it's not possible to check per-property, so we would have to copy many blocks for several properties appears at different meson versions.

But anyway, even if I add those fields after checking the version, the warnings don't disappear:

Program ./scripts/build-wrapper.sh found: YES (/home/rom/projects/scrcpy/server/./scripts/build-wrapper.sh)
WARNING: Project targetting '>= 0.37' but tried to use feature introduced in '0.47.0': build_always_stale arg in custom_target
WARNING: Project targetting '>= 0.37' but tried to use feature introduced in '0.40.0': build_by_default arg in custom_target
Build targets in project: 6
WARNING: Project specifies a minimum meson_version '>= 0.37' but uses features which were added in newer versions:
 * 0.40.0: {'build_by_default arg in custom_target'}
 * 0.47.0: {'build_always_stale arg in custom_target'}

So what should I do?

Appear that it still a thing.. sadly im not able to build due the same problem..
how can it be?
Ubuntu 18.10

ruti@Ruti-Vayo:~/scrcpy$ meson x --buildtype release --strip -Db_lto=true
The Meson build system
Version: 0.47.2
Source dir: /home/ruti/scrcpy
Build dir: /home/ruti/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.8
Native C compiler: cc (gcc 8.2.0 "cc (Ubuntu 8.2.0-7ubuntu1) 8.2.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency libavformat found: YES 58.12.100
Native dependency libavcodec found: YES 58.18.100
Native dependency libavutil found: YES 56.14.100
Native dependency sdl2 found: YES 2.0.8
Configuring config.h using configuration
Program ./scripts/build-wrapper.sh found: YES (/home/ruti/scrcpy/server/./scripts/build-wrapper.sh)
DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale instead.
Build targets in project: 6
Found ninja-1.8.2 at /usr/bin/ninja

.. i dont know a thing at all about linux..

sadly im not able to build due the same problem

No, it's just a warning.

After that, execute ninja -Cx. What is the result?

sadly im not able to build due the same problem

No, it's just a warning.

After that, execute ninja -Cx. What is the result?

Hiho,
didnt see any reference to ninja -Cx before.. i did run command normally

as you can see here..

ruti@Ruti-Vayo:~/scrcpy/x$ ninja
[33/33] Generating scrcpy-server with a custom command.
FAILED: server/scrcpy-server.jar 
/home/ruti/scrcpy/server/./scripts/build-wrapper.sh ../server/. server/scrcpy-server.jar release
Downloading https://services.gradle.org/distributions/gradle-4.4-all.zip
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/ruti/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1/gradle-4.4-all.zip to /home/ruti/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1
Set executable permissions for: /home/ruti/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1/gradle-4.4/bin/gradle
Starting a Gradle Daemon (subsequent builds will be faster)
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.1/gradle-3.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-core/3.1.1/gradle-core-3.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle-api/26.1.1/lint-gradle-api-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.1/builder-3.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
Download https://dl.google.com/dl/android/maven2/com/android/databinding/compilerCommon/3.1.1/compilerCommon-3.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-api/3.1.1/gradle-api-3.1.1.pom
Download https://jcenter.bintray.com/org/ow2/asm/asm/5.1/asm-5.1.pom
Download https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.1/asm-analysis-5.1.pom
Download https://jcenter.bintray.com/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.pom
Download https://jcenter.bintray.com/org/ow2/asm/asm-util/5.1/asm-util-5.1.pom
Download https://jcenter.bintray.com/org/ow2/asm/asm-parent/5.1/asm-parent-5.1.pom
Download https://jcenter.bintray.com/org/ow2/ow2/1.3/ow2-1.3.pom
Download https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom
Download https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.3.3/proguard-gradle-5.3.3.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom
Download https://jcenter.bintray.com/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Download https://jcenter.bintray.com/net/sf/proguard/proguard-parent/5.3.3/proguard-parent-5.3.3.pom
Download https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.pom
Download https://jcenter.bintray.com/com/google/guava/guava/22.0/guava-22.0.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.pom
Download https://jcenter.bintray.com/com/google/auto/auto-parent/3/auto-parent-3.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-parent/3.4.0/protobuf-parent-3.4.0.pom
Download https://jcenter.bintray.com/com/google/guava/guava-parent/22.0/guava-parent-22.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.pom
Download https://jcenter.bintray.com/com/google/google/1/google-1.pom
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.1.2/error_prone_annotations-2.1.2.pom
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_parent/2.1.2/error_prone_parent-2.1.2.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-test-api/3.1.1/builder-test-api-3.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.1.1/sdk-common-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.1.1/sdklib-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/3.1.1/builder-model-3.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.1.1/manifest-merger-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.1.1/protos-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.1.1/shared-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.1.1/ddmlib-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/26.1.1/tracker-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/3.1.1/apksig-3.1.1.pom
Download https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom
Download https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom
Download https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom
Download https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/common/26.1.1/common-26.1.1.pom
Download https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom
Download https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.pom
Download https://dl.google.com/dl/android/maven2/com/android/databinding/baseLibrary/3.1.1/baseLibrary-3.1.1.pom
Download https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom
Download https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom
Download https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.7/gson-2.7.pom
Download https://jcenter.bintray.com/org/antlr/antlr4-master/4.5.3/antlr4-master-4.5.3.pom
Download https://jcenter.bintray.com/com/android/tools/annotations/24.5.0/annotations-24.5.0.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/25/commons-parent-25.pom
Download https://jcenter.bintray.com/com/google/code/gson/gson-parent/2.7/gson-parent-2.7.pom
Download https://jcenter.bintray.com/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Download https://jcenter.bintray.com/com/squareup/javapoet/1.8.0/javapoet-1.8.0.pom
Download https://jcenter.bintray.com/org/apache/apache/9/apache-9.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.2.0/kotlin-stdlib-jre7-1.2.0.pom
Download https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.3.3/proguard-base-5.3.3.pom
Download https://jcenter.bintray.com/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom
Download https://jcenter.bintray.com/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.pom
Download https://jcenter.bintray.com/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.pom
Download https://jcenter.bintray.com/org/codehaus/mojo/animal-sniffer-parent/1.14/animal-sniffer-parent-1.14.pom
Download https://jcenter.bintray.com/org/codehaus/mojo/mojo-parent/34/mojo-parent-34.pom
Download https://jcenter.bintray.com/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.1.1/repository-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/26.1.1/layoutlib-api-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/26.1.1/dvlib-26.1.1.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.6/httpclient-4.2.6.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/39/commons-parent-39.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.2.6/httpcomponents-client-4.2.6.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/project/7/project-7.pom
Download https://jcenter.bintray.com/org/apache/apache/16/apache-16.pom
Download https://jcenter.bintray.com/org/apache/apache/13/apache-13.pom
Download https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom
Download https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.pom
Download https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom
Download https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom
Download https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.pom
Download https://jcenter.bintray.com/com/google/jimfs/jimfs-parent/1.1/jimfs-parent-1.1.pom
Download https://jcenter.bintray.com/com/sun/xml/bind/mvn/jaxb-runtime-parent/2.2.11/jaxb-runtime-parent-2.2.11.pom
Download https://jcenter.bintray.com/com/sun/activation/all/1.2.0/all-1.2.0.pom
Download https://jcenter.bintray.com/com/sun/xml/bind/mvn/jaxb-parent/2.2.11/jaxb-parent-2.2.11.pom
Download https://jcenter.bintray.com/net/java/jvnet-parent/1/jvnet-parent-1.pom
Download https://jcenter.bintray.com/com/sun/xml/bind/jaxb-bom-ext/2.2.11/jaxb-bom-ext-2.2.11.pom
Download https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-bom/2.2.11/jaxb-bom-2.2.11.pom
Download https://jcenter.bintray.com/net/java/jvnet-parent/4/jvnet-parent-4.pom
Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.2.5/httpcomponents-core-4.2.5.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/22/commons-parent-22.pom
Download https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom
Download https://jcenter.bintray.com/com/sun/xml/fastinfoset/FastInfoset/1.2.13/FastInfoset-1.2.13.pom
Download https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-core/2.2.11/jaxb-core-2.2.11.pom
Download https://jcenter.bintray.com/org/jvnet/staxex/stax-ex/1.7.7/stax-ex-1.7.7.pom
Download https://jcenter.bintray.com/net/java/jvnet-parent/3/jvnet-parent-3.pom
Download https://jcenter.bintray.com/com/sun/xml/fastinfoset/fastinfoset-project/1.2.13/fastinfoset-project-1.2.13.pom
Download https://jcenter.bintray.com/com/sun/istack/istack-commons-runtime/2.21/istack-commons-runtime-2.21.pom
Download https://jcenter.bintray.com/org/glassfish/jaxb/txw2/2.2.11/txw2-2.2.11.pom
Download https://jcenter.bintray.com/javax/xml/bind/jaxb-api/2.2.12-b140109.1041/jaxb-api-2.2.12-b140109.1041.pom
Download https://jcenter.bintray.com/com/sun/istack/istack-commons/2.21/istack-commons-2.21.pom
Download https://jcenter.bintray.com/com/sun/xml/bind/mvn/jaxb-txw-parent/2.2.11/jaxb-txw-parent-2.2.11.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/annotations/26.1.1/annotations-26.1.1.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.1/gradle-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.1/builder-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-core/3.1.1/gradle-core-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-api/3.1.1/gradle-api-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/databinding/compilerCommon/3.1.1/compilerCommon-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.1.1/manifest-merger-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.1.1/sdk-common-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.1.1/sdklib-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.1.1/repository-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.1/asm-analysis-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-util/5.1/asm-util-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm/5.1/asm-5.1.jar
Download https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.jar
Download https://jcenter.bintray.com/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.jar
Download https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.3.3/proguard-gradle-5.3.3.jar
Download https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java-util/3.4.0/protobuf-java-util-3.4.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-test-api/3.1.1/builder-test-api-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.1.1/ddmlib-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.1.1/shared-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/26.1.1/tracker-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/26.1.1/layoutlib-api-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/26.1.1/dvlib-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/common/26.1.1/common-26.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.1.1/protos-26.1.1.jar
Download https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar
Download https://jcenter.bintray.com/com/google/guava/guava/22.0/guava-22.0.jar
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.1.2/error_prone_annotations-2.1.2.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/3.1.1/builder-model-3.1.1.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/3.1.1/apksig-3.1.1.jar
Download https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar
Download https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.jar
Download https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar
Download https://jcenter.bintray.com/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar
Download https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.jar
Download https://dl.google.com/dl/android/maven2/com/android/databinding/baseLibrary/3.1.1/baseLibrary-3.1.1.jar
Download https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar
Download https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar
Download https://jcenter.bintray.com/com/squareup/javapoet/1.8.0/javapoet-1.8.0.jar
Download https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.7/gson-2.7.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/annotations/26.1.1/annotations-26.1.1.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.2.0/kotlin-stdlib-jre7-1.2.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar
Download https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.3.3/proguard-base-5.3.3.jar
Download https://jcenter.bintray.com/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
Download https://jcenter.bintray.com/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
Download https://jcenter.bintray.com/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
Download https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.jar
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.6/httpclient-4.2.6.jar
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar
Download https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
Download https://jcenter.bintray.com/org/jetbrains/annotations/13.0/annotations-13.0.jar
Download https://jcenter.bintray.com/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar
Download https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar
Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
Download https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-core/2.2.11/jaxb-core-2.2.11.jar
Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
Download https://jcenter.bintray.com/org/jvnet/staxex/stax-ex/1.7.7/stax-ex-1.7.7.jar
Download https://jcenter.bintray.com/javax/xml/bind/jaxb-api/2.2.12-b140109.1041/jaxb-api-2.2.12-b140109.1041.jar
Download https://jcenter.bintray.com/com/sun/xml/fastinfoset/FastInfoset/1.2.13/FastInfoset-1.2.13.jar
Download https://jcenter.bintray.com/org/glassfish/jaxb/txw2/2.2.11/txw2-2.2.11.jar
Download https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle-api/26.1.1/lint-gradle-api-26.1.1.jar
Download https://jcenter.bintray.com/com/sun/istack/istack-commons-runtime/2.21/istack-commons-runtime-2.21.jar
Unable to create new analytics settings: /home/ruti/.android/analytics.settings (Permiss茫o negada)

FAILURE: Build failed with an exception.

* Where:
Build file '/home/ruti/scrcpy/server/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':server'.
> Failed to apply plugin [id 'com.android.application']
   > java.nio.file.AccessDeniedException: /home/ruti/.android/build-cache.lock

* 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 1m 18s
ninja: build stopped: subcommand failed.

i did wipe de data do try again using ninja -Cx

You need to fix this (a priori not related to scrcpy).

java.nio.file.AccessDeniedException: /home/ruti/.android/build-cache.lock

As an alternative, you can use the prebuilt server so you don't need to build the Android part.

didnt see any reference to ninja -Cx before

It's equivalent to:

cd x
ninja

@rom1v said here:

It just must not require a newer version of _meson_ (so it must still work with _meson 0.37_).

I am not sure if that requirement is still valid, as building from current master (f903cd3) already requires meson v48+; see the warnings below (I have edited that to fit the comment space).

WARNING: Project targetting '>= 0.37' but tried to use feature introduced in '0.48.0': console arg
  in custom_target
DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale
  instead.
WARNING: Project specifies a minimum meson_version '>= 0.37' but uses features which were
  added in newer versions:
 * 0.48.0: {'console arg in custom_target'}

already requires meson v48+

It just enables an option if v48, but it still works for earlier versions. See 20b3f101a40cd7455cc5b41e381291504deec5ba.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SamuelBlickle picture SamuelBlickle  路  3Comments

cutoseo picture cutoseo  路  4Comments

singleNeuron picture singleNeuron  路  3Comments

tonyyang924 picture tonyyang924  路  4Comments

fleytman picture fleytman  路  4Comments