我刚刚开始使用 react native,在构建应用程序时遇到了一些问题。这是错误:(完整日志)Starting JS server...Building and installing the app on the device (cd android && ./gradlew installDebug)...AAPT err(Facade for 33021040): /home/srijan/Android/build-tools/27.0.3/aapt2: 1: /home/srijan/Android/build-tools/27.0.3/aapt2: Syntax error: "(" unexpectedSlave 33021040 failed to startjava.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at /home/srijan/Android/build-tools/27.0.3/aapt2) are not corrupted. at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:193) at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:250) at java.lang.Thread.run(Thread.java:748)AAPT err(Facade for 26937763): /home/srijan/Android/build-tools/27.0.3/aapt2: 1: /home/srijan/Android/build-tools/27.0.3/aapt2: Syntax error: "(" unexpectedSlave 26937763 failed to startjava.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at /home/srijan/Android/build-tools/27.0.3/aapt2) are not corrupted. at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:193) at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:250) at java.lang.Thread.run(Thread.java:748)Exception in thread "queued-resource-processor_2" java.util.MissingFormatArgumentException: Format specifier '%1$s'所以这是错误 请帮我解决这个问题。我也尝试过,使用 sdkmanager cli 重新下载构建工具 27.0.3。
2 回答
精慕HU
TA贡献1845条经验 获得超8个赞
您正在尝试在 32 位 linux 上运行这些工具,但它不受支持。支持的系统是 Windows(32 位和 64 位)、Mac OS 64 位和 Linux 64 位。
以下是 Android Studio 页面的更多信息:https : //developer.android.com/studio/#downloads
呼啦一阵风
TA贡献1802条经验 获得超6个赞
添加回答
举报
0/150
提交
取消