Android Studio中的选项标签

时间:2016-05-27 17:01:56

标签: android-studio

在工具下,应该有选项,我没有。

我在Android Studio中遇到此错误

Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Haf\AppData\Local\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

有人建议我这样做

将构建输出从最小值更改为正常(转到工具 - >选项 - >项目和解决方案 - >构建和运行)。找到错误

我无法在工具

下找到选项

更新:

Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027hint\u0027 with value \u0027@string/province\u0027).","sources":[{"file":"C:\\Users\\Haf\\Desktop\\EcommerceAndroidApp\\app\\src\\main\\res\\layout\\checkout.xml","position":{"startLine":57,"startColumn":30,"startOffset":2219,"endColumn":46,"endOffset":2235}}],"original":""}
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027title\u0027 with value \u0027@string/more\u0027).","sources":[{"file":"C:\\Users\\Haf\\Desktop\\EcommerceAndroidApp\\app\\src\\main\\res\\menu\\main.xml","position":{"startLine":20,"startColumn":31,"startOffset":677,"endColumn":43,"endOffset":689}}],"original":""}


 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Haf\AppData\Local\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.239 secs
Executing tasks: [clean, :app:compileDebugSources]

Configuration on demand is an incubating feature.
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
AAPT err(1990715111): C:\Users\Haf\Desktop\EcommerceAndroidApp\app\src\main\res\drawable-hdpi\ic_ab_overflow_compat.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1667468375): C:\Users\Haf\Desktop\EcommerceAndroidApp\app\src\main\res\drawable-hdpi\ic_ab_up_compat.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1326764854): C:\Users\Haf\Desktop\EcommerceAndroidApp\app\src\main\res\drawable-hdpi\ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT err(1593225609): C:\Users\Haf\Desktop\EcommerceAndroidApp\app\src\main\res\drawable-hdpi\no_color.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

:app:processDebugManifest
:app:processDebugResources
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027hint\u0027 with value \u0027@string/province\u0027).","sources":[{"file":"C:\\Users\\Haf\\Desktop\\EcommerceAndroidApp\\app\\src\\main\\res\\layout\\checkout.xml","position":{"startLine":57,"startColumn":30,"startOffset":2219,"endColumn":46,"endOffset":2235}}],"original":""}
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027title\u0027 with value \u0027@string/more\u0027).","sources":[{"file":"C:\\Users\\Haf\\Desktop\\EcommerceAndroidApp\\app\\src\\main\\res\\menu\\main.xml","position":{"startLine":20,"startColumn":31,"startOffset":677,"endColumn":43,"endOffset":689}}],"original":""}


 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Haf\AppData\Local\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 13.677 secs

0 个答案:

没有答案