从com.android.tools.build:gradle:3.0.1升级到com.android.tools.build:gradle:3.2.0

时间:2019-04-29 16:38:06

标签: android gradle

在我的@Override public int getSize( Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) { final Paint.FontMetrics paintFontMetrics = paint.getFontMetrics(); if (fm != null) { fm.ascent = (int) paintFontMetrics.ascent; fm.bottom = (int) paintFontMetrics.bottom; fm.descent = (int) paintFontMetrics.descent; fm.leading = (int) paintFontMetrics.leading; fm.top = (int) paintFontMetrics.top; } //... } 中,我正在使用build.gradle (Module: app),并将其更改为classpath 'com.android.tools.build:gradle:3.0.1'。显示以下消息的BUILD FAILED:

classpath 'com.android.tools.build:gradle:3.2.0'

关于此问题的任何想法?似乎在抱怨缺少与字体和字体样式相关的资源,但是我不确定该如何解决。

1 个答案:

答案 0 :(得分:0)

我保留了function store_data() { var teamwork = document.getElementById("teamwork").checked; var rubyskills = document.getElementById("rubyskills").checked; var efficiency = document.getElementById("efficiency").checked; var communication = document.getElementById("communication").checked; sessionStorage.setItem("teamwork", teamwork); sessionStorage.setItem("ruby", rubyskills); sessionStorage.setItem("efficiency", efficiency); sessionStorage.setItem("communication", communication); sessionStorage.setItem("other", other); } function prefill_form() { if(sessionStorage.teamwork == "true") { document.getElementById("teamwork").checked = true; } if(sessionStorage.ruby == "true") { document.getElementById("rubyskills").checked = true; } if(sessionStorage.efficiency == "true") { document.getElementById("efficiency").checked = true; } if(sessionStorage.communication == "true") { document.getElementById("communication").checked = true; } if(sessionStorage.other == "true") { document.getElementById("other").checked = true; } } ,但做了两件事:

  1. 已安装`Android SDK Platform 28(平台; android-28)
  2. 在build.gradle(模块:应用)中将com.android.tools.build.gradle:3.0.1替换为compileSdkVersion 23

enter image description here enter image description here