1

我的构建文件是发生了这个问题,我不想更改此配置以在 Play 商店中上传应用程序

配置

android {  
   compileSdkVersion 27   
  buildToolsVersion '27.0.3'   
  useLibrary 'org.apache.http.legacy'   
  defaultConfig {   
      applicationId 'com.easytelecom1' 
        minSdkVersion 14     
    targetSdkVersion 27   
   }

错误

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':actionbarsherlock:generateDebugRFile'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
Caused by: com.android.ide.common.symbols.ResourceValuesXmlParseException: Unknown android attribute 'SherlockSpinner'
    at com.android.ide.common.symbols.ResourceValuesXmlParser.parseDeclareStyleable(ResourceValuesXmlParser.java:335)
    at com.android.ide.common.symbols.ResourceValuesXmlParser.parseChild(ResourceValuesXmlParser.java:261)
    at com.android.ide.common.symbols.ResourceValuesXmlParser.parse(ResourceValuesXmlParser.java:175)
    at com.android.ide.common.symbols.ResourceDirectoryParser.parseResourceDirectory(ResourceDirectoryParser.java:173)
    at com.android.ide.common.symbols.ResourceDirectoryParser.parseDirectory(ResourceDirectoryParser.java:119)
    at com.android.build.gradle.internal.res.GenerateLibraryRFileTask.doFullTaskAction(GenerateLibraryRFileTask.kt:100)
    at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
4

1 回答 1

0
Caused by: com.android.ide.common.symbols.ResourceValuesXmlParseException: Unknown android attribute 'SherlockSpinner'

尝试删除SherlockSpinner(我不知道是否存在),清理构建,再次添加,制作项目。

于 2018-08-16T18:27:59.467 回答