Build MATTER chip-tool Android APK in Ubuntu server

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build MATTER chip-tool Android APK in Ubuntu server

Build MATTER chip-tool Android APK in Ubuntu server

 

Introduction

 

MATTER chip-tool android APK is a very useful tool for commission, control the MATTER network by smart phone. Vendor can add various features into the APK.

It supports build by Android Studio and command line. The official build steps can be found here: https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/android_building.md

But the official guide does not cover how to build in a non-GUI linux distribution (without Android Studio installed). This article describes how to build under Ubuntu server.

Install Android SDK 

Install SDK command line from: https://developer.android.com/studio, And follow the steps: https://developer.android.com/tools/sdkmanager to install. 

Install the Android-26 SDK and 23 NDK:

$./sdkmanager "platforms;android-26" "ndk;23.2.8568313" 

Export env 

$export ANDROID_HOME=<SDK path> 
$export ANDROID_NDK_HOME=<SDK path>/ndk/23.2.8568313/

 

Install kotlin (1.8.0) 

$curl -s https://get.sdkman.io | bash 
$sdk install kotlin 1.8.0 
$whereis kotlin 
$export PATH=$PATH:<patch of bin of kotlin> 

 

Configure proxy for gradle 

$ cat ~/.gradle/gradle.properties 
# Set the socket timeout to 5 minutes (good for proxies) 
org.gradle.internal.http.socketTimeout=300000 
# the number of retries (initial included) (default 3) 
org.gradle.internal.repository.max.retries=10 
# the initial time before retrying, in milliseconds (default 125) 
org.gradle.internal.repository.initial.backoff=500 
systemProp.http.proxyHost=apac.nics.nxp.com 
systemProp.http.proxyPort=8080 
systemProp.http.nonProxyHosts=localhost|*.nxp.com 
systemProp.https.proxyHost=apac.nics.nxp.com 
systemProp.https.proxyPort=8080 
systemProp.https.nonProxyHosts=localhost|*.nxp.com 

 

Configure proxy 

Configure proxy for download packages during build

export FTP_PROXY="http://apac.nics.nxp.com:8080" 
export HTTPS_PROXY="http://apac.nics.nxp.com:8080" 
export HTTP_PROXY="http://apac.nics.nxp.com:8080" 
export NO_PROXY="localhost,*.nxp.com" 
export ftp_proxy="http://apac.nics.nxp.com:8080" 
export http_proxy="http://apac.nics.nxp.com:8080" 
export https_proxy="http://apac.nics.nxp.com:8080" 
export no_proxy="localhost,*.nxp.com" 

 

Patch for gradle java option 

This step can be skipped if using OpenJDK16. 

Otherwise if you're using OpenJDK 17 (Java 61), you have to upgrade the gradle from 7.1.1 to 7.3, and add java.io open to ALL-UNNAMED: 

diff --git a/examples/android/CHIPTool/gradle.properties b/examples/android/CHIPTool/gradle.properties 
index 71f72db8c8..5bce4b4528 100644 
--- a/examples/android/CHIPTool/gradle.properties 
+++ b/examples/android/CHIPTool/gradle.properties 
@@ -6,7 +6,8 @@ 
http://www.gradle.org/docs/current/userguide/build_environment.html 
# Specifies the JVM arguments used for the daemon process. 
# The setting is particularly useful for tweaking memory settings. 
-org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 
+#org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 
+org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8  --add-opens=java.base/java.io=ALL-UNNAMED 
# When configured, Gradle will run in incubating parallel mode. 
# This option should only be used with decoupled projects. More details, visit 
http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 
diff --git a/examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties b/examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties 
index 05679dc3c1..e750102e09 100644 
--- a/examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties 
+++ b/examples/android/CHIPTool/gradle/wrapper/gradle-wrapper.properties 
@@ -1,5 +1,5 @@ 
distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip 
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 

 

Build & Install

Clone all the modules from github:

$git clone --single-branch --recurse-submodules https://github.com/project-chip/connectedhomeip.git

Enviroment setup:

$source scripts/bootstrap.sh

Build:

./scripts/build/build_examples.py --target android-arm64-chip-tool build

Install built apk into phone:

$adb install out/android-arm64-chip-tool/outputs/apk/debug/app-debug.apk

 

%3CLINGO-SUB%20id%3D%22lingo-sub-1881092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9C%A8%20Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E6%9E%84%E5%BB%BA%20MATTER%20chip-tool%20Android%20APK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1881092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%20class%3D%22lia-message-template-symptoms-zone%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-solution-zone%22%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId--1208644087%22%20id%3D%22toc-hId--493835206%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E7%AE%80%E4%BB%8B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%20aria-level%3D%221%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EMATTER%20%E8%8A%AF%E7%89%87%E5%B7%A5%E5%85%B7%20Android%20APK%20%E6%98%AF%E4%B8%80%E6%AC%BE%E9%9D%9E%E5%B8%B8%E5%AE%9E%E7%94%A8%E7%9A%84%E5%B7%A5%E5%85%B7%EF%BC%8C%E7%94%A8%E4%BA%8E%E9%80%9A%E8%BF%87%E6%99%BA%E8%83%BD%E6%89%8B%E6%9C%BA%E5%AF%B9%20MATTER%20%E7%BD%91%E7%BB%9C%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE%E5%92%8C%E6%8E%A7%E5%88%B6%E3%80%82%E4%BE%9B%E5%BA%94%E5%95%86%E5%8F%AF%E4%BB%A5%E5%B0%86%E5%90%84%E7%A7%8D%E5%8A%9F%E8%83%BD%E6%B7%BB%E5%8A%A0%E5%88%B0%20APK%20%E4%B8%AD%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E5%AE%83%E6%94%AF%E6%8C%81%E9%80%9A%E8%BF%87%20Android%20Studio%20%E5%92%8C%E5%91%BD%E4%BB%A4%E8%A1%8C%E8%BF%9B%E8%A1%8C%E6%9E%84%E5%BB%BA%E3%80%82%E5%AE%98%E6%96%B9%E6%9E%84%E5%BB%BA%E6%AD%A5%E9%AA%A4%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%BF%99%E9%87%8C%E6%89%BE%E5%88%B0%EF%BC%9A%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fproject-chip%2Fconnectedhomeip%2Fblob%2Fmaster%2Fdocs%2Fguides%2Fandroid_building.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fproject-chip%2Fconnectedhomeip%2Fblob%2Fmaster%2Fdocs%2Fguides%2Fandroid_building.md%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E4%BD%86%E5%AE%98%E6%96%B9%E6%8C%87%E5%8D%97%E5%B9%B6%E6%9C%AA%E6%B6%B5%E7%9B%96%E5%A6%82%E4%BD%95%E5%9C%A8%E9%9D%9E%E5%9B%BE%E5%BD%A2%E7%94%A8%E6%88%B7%E7%95%8C%E9%9D%A2%E7%9A%84%20Linux%20%E5%8F%91%E8%A1%8C%E7%89%88%E4%B8%AD%E8%BF%9B%E8%A1%8C%E6%9E%84%E5%BB%BA%EF%BC%88%E6%9C%AA%E5%AE%89%E8%A3%85%20Android%20Studio%EF%BC%89%E3%80%82%E6%9C%AC%E6%96%87%E6%8F%8F%E8%BF%B0%E4%BA%86%20Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84%E6%9E%84%E5%BB%BA%E6%96%B9%E6%B3%95%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId-1278868746%22%20id%3D%22toc-hId-1993677627%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E5%AE%89%E8%A3%85%20Android%20SDK%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E4%BB%8E%E4%BB%A5%E4%B8%8B%E4%BD%8D%E7%BD%AE%E5%AE%89%E8%A3%85%20SDK%20%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7%EF%BC%9A%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.android.com%2Fstudio%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehttps%3A%2F%2Fdeveloper.android.com%2Fstudio%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%EF%BC%8C%E5%B9%B6%E6%8C%89%E7%85%A7%E4%BB%A5%E4%B8%8B%E6%AD%A5%E9%AA%A4%E6%93%8D%E4%BD%9C%EF%BC%9A%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.android.com%2Ftools%2Fsdkmanager%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehttps%3A%2F%2Fdeveloper.android.com%2Ftools%2Fsdkmanager%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85%E3%80%82%3C%2FSPAN%3E%3CSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E5%AE%89%E8%A3%85%20Android-26%20SDK%20%E5%92%8C%2023%20NDK%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3E%24%3CSPAN%20data-contrast%3D%22auto%22%3E.%2Fsdkmanager%26nbsp%3B%E2%80%9Cplatforms%EF%BC%9Bandroid-26%E2%80%9D%20%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Endk%EF%BC%9B23.2.8568313%E2%80%9D%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EExport%20env%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%20ANDROID_HOME%3D%3CSDK%20path%3D%22%22%3E%3C%2FSDK%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%20ANDROID_NDK_HOME%3D%3CSDK%20path%3D%22%22%3E%2Fndk%2F23.2.8568313%2F%3C%2FSDK%3E%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId--528585717%22%20id%3D%22toc-hId-186223164%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId-1958927116%22%20id%3D%22toc-hId--1621231299%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EInstall%26nbsp%3Bkotlin%26nbsp%3B(1.8.0)%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ecurl%20-s%20https%3A%2F%2Fget.sdkman.io%20%7C%20bash%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24sdk%26nbsp%3Binstall%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ekotlin%26nbsp%3B1.8.0%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24whereis%26nbsp%3Bkotlin%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24export%20PATH%3D%24PATH%3A%3CPATCH%20of%3D%22%22%20bin%3D%22%22%20of%3D%22%22%3E%3C%2FPATCH%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId-151472653%22%20id%3D%22toc-hId-866281534%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E4%B8%BA%20Gradle%20%E9%85%8D%E7%BD%AE%E4%BB%A3%E7%90%86%3C%2FSPAN%3E%3CSPAN%3E%20%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%24%20cat%20~%2F.gradle%2Fgradle.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20Set%20the%20socket%20timeout%20to%205%20minutes%20(good%20for%20proxies)%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eorg.gradle.internal.http.socketTimeout%3D300000%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20the%20number%20of%20retries%20(initial%20included)%20(default%203)%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eorg.gradle.internal.repository.max.retries%3D10%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20the%20initial%20time%20before%20retrying%2C%20in%20milliseconds%20(default%20125)%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eorg.gradle.internal.repository.initial.backoff%3D500%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EsystemProp.http.proxyHost%3Dapac.nics.nxp.com%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EsystemProp.http.proxyPort%3D8080%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EsystemProp.http.nonProxyHosts%3Dlocalhost%7C*.nxp.com%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EsystemProp.https.proxyHost%3Dapac.nics.nxp.com%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EsystemProp.https.proxyPort%3D8080%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EsystemProp.https.nonProxyHosts%3Dlocalhost%7C*.nxp.com%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId--1655981810%22%20id%3D%22toc-hId--941172929%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E9%85%8D%E7%BD%AE%E4%BB%A3%E7%90%86%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3E%E5%9C%A8%E6%9E%84%E5%BB%BA%E8%BF%87%E7%A8%8B%E4%B8%AD%E9%85%8D%E7%BD%AE%E4%BB%A3%E7%90%86%E4%BB%A5%E4%B8%8B%E8%BD%BD%E8%BD%AF%E4%BB%B6%E5%8C%85%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%20FTP_PROXY%3D%22http%3A%2F%2Fapac.nics.nxp.com%3A8080%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EHTTPS_PROXY%3D%22http%3A%2F%2Fapac.nics.nxp.com%3A8080%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EHTTP_PROXY%3D%22http%3A%2F%2Fapac.nics.nxp.com%3A8080%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3ENO_PROXY%3D%22localhost%2C*.nxp.com%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eftp_proxy%3D%22http%3A%2F%2Fapac.nics.nxp.com%3A8080%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehttp_proxy%3D%22http%3A%2F%2Fapac.nics.nxp.com%3A8080%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehttps_proxy%3D%22http%3A%2F%2Fapac.nics.nxp.com%3A8080%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eexport%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eno_proxy%3D%22localhost%2C*.nxp.com%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20aria-level%3D%221%22%20id%3D%22toc-hId-831531023%22%20id%3D%22toc-hId-1546339904%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EGradle%20Java%20%E9%80%89%E9%A1%B9%E7%9A%84%E8%A1%A5%E4%B8%81%3C%2FSPAN%3E%3CSPAN%3E%20%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E5%A6%82%E6%9E%9C%E4%BD%BF%E7%94%A8%20OpenJDK16%EF%BC%8C%E5%88%99%E5%8F%AF%E4%BB%A5%E8%B7%B3%E8%BF%87%E6%AD%A4%E6%AD%A5%E9%AA%A4%E3%80%82%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E5%8F%A6%E5%A4%96%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%82%A8%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%20OpenJDK%2017%EF%BC%88Java%2061%EF%BC%89%EF%BC%8C%E6%82%A8%E9%9C%80%E8%A6%81%E5%B0%86%20Gradle%20%E4%BB%8E%207.1.1%20%E5%8D%87%E7%BA%A7%E5%88%B0%207.3%EF%BC%8C%E5%B9%B6%E6%B7%BB%E5%8A%A0%20java.io%20%E5%88%B0%20ALL-UNNAMED%EF%BC%9A%3C%2FSPAN%3E%3CSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ediff%20--git%20a%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle.properties%26nbsp%3Bb%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eindex%2071f72db8c8..5bce4b4528%20100644%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E---%20a%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%2B%2B%2B%20b%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%40%40%20-6%2C7%20%2B6%2C8%20%40%40%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehttp%3A%2F%2Fwww.gradle.org%2Fdocs%2Fcurrent%2Fuserguide%2Fbuild_environment.html%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20Specifies%20the%20JVM%20arguments%20used%20for%20the%20daemon%20process.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20The%20setting%20is%20particularly%20useful%20for%20tweaking%20memory%20settings.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22none%22%3E-org.gradle.jvmargs%3D-Xmx4096m%20-XX%3AMaxPermSize%3D2048m%20-XX%3A%2BHeapDumpOnOutOfMemoryError%26nbsp%3B-Dfile.encoding%3DUTF-8%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22none%22%3E%2B%23org.gradle.jvmargs%3D-Xmx4096m%20-XX%3AMaxPermSize%3D2048m%20-XX%3A%2BHeapDumpOnOutOfMemoryError%26nbsp%3B-Dfile.encoding%3DUTF-8%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22none%22%3E%2Borg.gradle.jvmargs%3D-Xmx4096m%20-XX%3A%2BHeapDumpOnOutOfMemoryError%26nbsp%3B-Dfile.encoding%3DUTF-8%26nbsp%3B%20--add-opens%3Djava.base%2Fjava.io%3DALL-UNNAMED%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20When%20configured%2C%20Gradle%20will%20run%20in%20incubating%20parallel%20mode.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%20This%20option%20should%20only%20be%20used%20with%20decoupled%20projects.%20More%20details%2C%20visit%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%23%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehttp%3A%2F%2Fwww.gradle.org%2Fdocs%2Fcurrent%2Fuserguide%2Fmulti_project_builds.html%23sec%3Adecoupled_projects%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ediff%20--git%20a%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle%2Fwrapper%2Fgradle-wrapper.properties%26nbsp%3Bb%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle%2Fwrapper%2Fgradle-wrapper.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eindex%2005679dc3c1..e750102e09%20100644%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E---%20a%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle%2Fwrapper%2Fgradle-wrapper.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%2B%2B%2B%20b%2Fexamples%2Fandroid%2FCHIPTool%2Fgradle%2Fwrapper%2Fgradle-wrapper.properties%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%40%40%20-1%2C5%20%2B1%2C5%20%40%40%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EdistributionBase%3DGRADLE_USER_HOME%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EdistributionPath%3Dwrapper%2Fdists%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22none%22%3E-distributionUrl%3Dhttps%5C%3A%2F%2Fservices.gradle.org%2Fdistributions%2Fgradle-7.1.1-bin.zip%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22none%22%3E%2BdistributionUrl%3Dhttps%5C%3A%2F%2Fservices.gradle.org%2Fdistributions%2Fgradle-7.3-bin.zip%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EzipStoreBase%3DGRADLE_USER_HOME%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20data-contrast%3D%22auto%22%3EzipStorePath%3Dwrapper%2Fdists%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CH2%20id%3D%22toc-hId--975923440%22%20id%3D%22toc-hId--261114559%22%3E%3CSPAN%3E%E6%9E%84%E5%BB%BA%26amp%3B%E5%AE%89%E8%A3%85%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3E%E4%BB%8E%20GitHub%20%E5%85%8B%E9%9A%86%E6%89%80%E6%9C%89%E6%A8%A1%E5%9D%97%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E%24git%20clone%20--single-branch%20--recurse-submodules%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fproject-chip%2Fconnectedhomeip.git%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fproject-chip%2Fconnectedhomeip.git%3C%2FA%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22pl-c1%22%3E%E7%8E%AF%E5%A2%83%E8%AE%BE%E7%BD%AE%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%20class%3D%22pl-c1%22%3E%24source%3C%2FSPAN%3E%20scripts%2Fbootstrap.sh%3C%2FPRE%3E%0A%3CP%3E%E6%9E%84%E5%BB%BA%3A%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E.%2Fscripts%2Fbuild%2Fbuild_examples.py%20--target%20android-arm64-chip-tool%20build%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%3E%E5%B0%86%E5%B7%B2%E6%9E%84%E5%BB%BA%E7%9A%84apk%E5%AE%89%E8%A3%85%E5%88%B0%E6%89%8B%E6%9C%BA%E4%B8%8A%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20translate%3D%22no%22%3E%3CSPAN%3E%24adb%20install%20out%2Fandroid-arm64-chip-tool%2Foutputs%2Fapk%2Fdebug%2Fapp-debug.apk%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1881092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAndroid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX%208%20%E7%B3%BB%E5%88%97%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
无评分
版本历史
最后更新:
‎06-04-2024 07:33 PM
更新人: