如何解决此问题,我真的不知道如何解决 下面是我在事件日志上得到的摘录代码
Gradle sync failed: Could not find com.android.tools.build:gradle-experimental:3.3.2.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/tools/build/gradle-experimental/3.3.2/gradle-experimental-3.3.2.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle-experimental/3.3.2/gradle-experimental-3.3.2.jar
- https://maven.google.com/com/android/tools/build/gradle-experimental/3.3.2/gradle-experimental-3.3.2.pom
- https://maven.google.com/com/android/tools/build/gradle-experimental/3.3.2/gradle-experimental-3.3.2.jar
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-experimental/3.3.2/gradle-experimental-3.3.2.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-experimental/3.3.2/gradle-experimental-3.3.2.jar
Required by:
project :
Consult IDE log for more details (Help | Show Log) (24 s 518 ms)
> Blockquote
答案 0 :(得分:0)
尝试从顶级x5c
更改您的android gradle插件版本,如下所示
public class FormLabelTagHelper : TagHelper
{
public FormLabelTagHelper(IHtmlGenerator generator)
{
this.Generator = generator;
}
[HtmlAttributeName("asp-for")]
public ModelExpression For { get; set; }
public IHtmlGenerator Generator { get; }
[ViewContext]
[HtmlAttributeNotBound]
public ViewContext ViewContext { get; set; }
public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
{
TagHelperOutput labelElement = await this.CreateLabelElement(context);
labelElement.AddClass("control-label", HtmlEncoder.Default);
output.TagName = null;
output.Content.AppendHtml(labelElement);
output.TagMode = TagMode.StartTagAndEndTag;
}
protected async Task<TagHelperOutput> CreateLabelElement(TagHelperContext context)
{
LabelTagHelper labelTagHelper = new LabelTagHelper(this.Generator)
{
For = this.For,
ViewContext = this.ViewContext
};
TagHelperOutput labelOutput = this.CreateTagHelperOutput("label");
await labelTagHelper.ProcessAsync(context, labelOutput);
return labelOutput;
}
protected TagHelperOutput CreateTagHelperOutput(string tagName)
{
return new TagHelperOutput(
tagName: tagName,
attributes: new TagHelperAttributeList(),
getChildContentAsync: (s, t) =>
{
return Task.Factory.StartNew<TagHelperContent>(() => new DefaultTagHelperContent());
});
}
}