This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
I built it in the following order, and the project still failed to initialize! #1436
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I built it in the following order, and the project still failed to initialize!
tar xvJf /storage/emulated/0/Download/WeiXin/android-sdk.tar.xz
cd android-sdk
~/android-sdk $ tar xvJf /storage/emulated/0/Download/WeiXin/build-tools-34.0.4-arm.tar.xz
~/android-sdk $ tar xvJf /storage/emulated/0/Download/WeiXin/platform-tools-34.0.4-arm.tar.xz
~/android-sdk $ tar xvf /storage/emulated/0/Download/WeiXin/cmdline-tools.tar.xz
~/android-sdk $ pkg upgrade d& pkg install openjdk-1%
EditorActivity I Connected to Gradle build service
ToolingServerRunner I Starting tooling API server...
EditorActivity D No variant selection information available. Default build variants will be selected.
EditorActivity D Is project initialized: false
EditorActivity D Sending init request to tooling server..
EditorActivity D onBuildStatusChanged: isInitializing: true, isBuildInProgress: false
ToolingApiServer D ToolingApiMain Server started. Will run until shutdown message is received...
ToolingApiServer D ToolingApiServerImpl Got initialize request InitializeProjectParams(directory=/storage/emulated/0/AndroidIDEProjects/My Application/app/src/main/res/layout, gradleDistribution=GradleDistributionParams(type=GRADLE_WRAPPER, value=), androidParams=AndroidInitializationParams(variantSelections={}))
ToolingApiServer I ToolingApiMain Checking gradle wrapper availability...
ToolingApiServer I ToolingApiMain Gradle wrapper is available
ToolingApiErrorStream E SLF4J: No SLF4J providers were found.
ToolingApiErrorStream E SLF4J: Defaulting to no-operation (NOP) logger implementation
ToolingApiErrorStream E SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
ToolingApiServer I ToolingApiServerImpl Using Gradle wrapper for build...
ToolingApiServer D StopWatch Connector created in 115ms
EditorActivity D onBuildStatusChanged: isInitializing: true, isBuildInProgress: true
ToolingApiServer D StopWatch Project connection established in 30ms
ToolingApiServer D ToolingApiMain Arguments from tooling client: [--init-script, /data/data/com.itsaky.androidide/files/home/.androidide/init/init.gradle, -Pandroid.aapt2FromMavenOverride=/data/data/com.itsaky.androidide/files/home/.androidide/aapt2, -Pandroidide.logsender.isEnabled=true]
ToolingApiServer W ProjectReader Starting build. See build output for more details...
EditorActivity I Opening file at index: 0 file: /storage/emulated/0/AndroidIDEProjects/My Application/app/src/main/res/layout/activity_main.xml
LanguageSpecProvider W Scheme file 'locals' for type 'xml' not found
ToolingApiServer E ToolingApiServerImpl Failed to initialize project
ToolingApiServer E java.net.SocketTimeoutException: Read timed out
ToolingApiServer E at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:283)
ToolingApiServer E at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:309)
ToolingApiServer E at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
ToolingApiServer E at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
ToolingApiServer E at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
ToolingApiServer E at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1500)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
ToolingApiServer E at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
ToolingApiServer E at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580)
ToolingApiServer E at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
ToolingApiServer E at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
ToolingApiServer E at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
ToolingApiServer E at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
ToolingApiServer E at org.gradle.wrapper.Download.downloadInternal(Download.java:129)
ToolingApiServer E Caused by: java.io.IOException: Downloading from https://services.gradle.org/distributions/gradle-8.1.1-bin.zip failed: timeout (10000ms)
ToolingApiServer E at org.gradle.wrapper.Download.downloadInternal(Download.java:151)
ToolingApiServer E at org.gradle.wrapper.Download.download(Download.java:109)
ToolingApiServer E at org.gradle.tooling.internal.consumer.DistributionInstaller$AsyncDownload$1.run(DistributionInstaller.java:182)
ToolingApiServer E Caused by: org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.1.1-bin.zip'.
ToolingApiServer E at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:135)
ToolingApiServer E at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:41)
ToolingApiServer E at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)
ToolingApiServer E at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:160)
ToolingApiServer E at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:142)
ToolingApiServer E at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)
ToolingApiServer E at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)
ToolingApiServer E at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)
ToolingApiServer E at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:67)
ToolingApiServer E at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
ToolingApiServer E at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
ToolingApiServer E at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
ToolingApiServer E at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
ToolingApiServer E at java.base/java.lang.Thread.run(Thread.java:833)
ToolingApiServer E at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
ToolingApiServer E at org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter.run(DefaultBuildActionExecuter.java:67)
ToolingApiServer E at com.itsaky.androidide.tooling.impl.sync.RootModelBuilder.build(RootModelBuilder.kt:116)
ToolingApiServer E at com.itsaky.androidide.tooling.impl.ToolingApiServerImpl$initialize$$inlined$runBuild$1.get(ToolingApiServerImpl.kt:462)
ToolingApiServer E at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
ToolingApiServer E at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
ToolingApiServer E at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
ToolingApiServer E at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
ToolingApiServer E at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
ToolingApiServer E at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
ToolingApiServer E at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
ToolingApiServer E
ToolingApiServer E
EditorActivity E An error occurred initializing the project with Tooling API null
EditorActivity D onBuildStatusChanged: isInitializing: true, isBuildInProgress: false
EditorActivity D onBuildStatusChanged: isInitializing: false, isBuildInProgress: false
Beta Was this translation helpful? Give feedback.
All reactions