我正在尝试构建我在 Google IO 2017 中引入的第一个即时应用程序。我已经下载了 Google Instant Apps SDK 并定位minSDKVersion
到 23
我创建了第一个项目,但在尝试构建它时遇到了以下错误。有没有人在构建即时应用程序时也面临同样的错误?这是因为它们的构建过程中存在一些错误吗?
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :base:generateDebugSources, :base:generateDebugAndroidTestSources, :base:mockableAndroidJar, :feature:generateDebugSources, :feature:mockableAndroidJar, :feature:generateDebugAndroidTestSources, :instantapp:generateDebugSources]
Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\williams\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt2.exe with arguments {link -I C:\Users\williams\AppData\Local\Android\Sdk\platforms\android-25\android.jar --manifest C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\manifest\androidTest\debug\AndroidManifest.xml -R @C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\incremental\processDebugAndroidTestResources\aapt-temp\aapt-resources-list.txt --auto-add-overlay --java C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\generated\source\r\androidTest\debug -o C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\res\androidTest\debug\resources-debugAndroidTest.ap_ -0 apk --output-text-symbols C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\symbols\androidTest\debug\R.txt --no-version-vectors}
Error:com.android.ide.common.process.ProcessException: Error while executing process C:\Users\williams\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt2.exe with arguments {link -I C:\Users\williams\AppData\Local\Android\Sdk\platforms\android-25\android.jar --manifest C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\manifest\androidTest\debug\AndroidManifest.xml -R @C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\incremental\processDebugAndroidTestResources\aapt-temp\aapt-resources-list.txt --auto-add-overlay --java C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\generated\source\r\androidTest\debug -o C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\res\androidTest\debug\resources-debugAndroidTest.ap_ -0 apk --output-text-symbols C:\Users\williams\AndroidStudioProjects\InstantAppDemo\base\build\intermediates\symbols\androidTest\debug\R.txt --no-version-vectors}
Error:org.gradle.process.internal.ExecException: Process 'command 'C:\Users\williams\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt2.exe'' finished with non-zero exit value 1
Error:Execution failed for task ':base:processDebugAndroidTestResources'.
> Failed to execute aapt
Information:BUILD FAILED in 3s
Information:4 errors
Information:0 warnings
Information:See complete output in console