mirror of
https://github.com/ZCShou/GoGoGo.git
synced 2026-06-13 21:00:55 +08:00
更新了 Gradle 插件为 7.0.2,同时由于 Aliyun 还没更新对应的插件,暂时替换为 Google 仓库
This commit is contained in:
parent
e8abd100ce
commit
bf7ec5fd27
@ -372,10 +372,10 @@ public class MainActivity extends BaseActivity
|
||||
}
|
||||
});
|
||||
|
||||
// 搜索框的清除按钮
|
||||
ImageView closeButton = (ImageView)searchView.findViewById(R.id.search_close_btn);
|
||||
// 搜索框的清除按钮(该按钮属于安卓系统图标)
|
||||
ImageView closeButton = (ImageView)searchView.findViewById(androidx.appcompat.R.id.search_close_btn);
|
||||
closeButton.setOnClickListener(v -> {
|
||||
EditText et = (EditText) findViewById(R.id.search_src_text);
|
||||
EditText et = (EditText) findViewById(androidx.appcompat.R.id.search_src_text);
|
||||
et.setText("");
|
||||
searchView.setQuery("", false);
|
||||
mSearchLayout.setVisibility(View.INVISIBLE);
|
||||
|
||||
37
build.gradle
37
build.gradle
@ -3,15 +3,17 @@
|
||||
buildscript {
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url 'https://maven.aliyun.com/repository/jcenter'
|
||||
}
|
||||
maven {
|
||||
url 'https://maven.aliyun.com/repository/google'
|
||||
}
|
||||
// maven {
|
||||
// url 'https://maven.aliyun.com/repository/jcenter'
|
||||
// }
|
||||
// maven {
|
||||
// url 'https://maven.aliyun.com/repository/google'
|
||||
// }
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.0.1'
|
||||
classpath 'com.android.tools.build:gradle:7.0.2'
|
||||
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
@ -21,15 +23,18 @@ buildscript {
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven {
|
||||
url 'https://maven.aliyun.com/repository/jcenter'
|
||||
}
|
||||
maven {
|
||||
url 'https://maven.aliyun.com/repository/central'
|
||||
}
|
||||
maven {
|
||||
url 'https://maven.aliyun.com/repository/google'
|
||||
}
|
||||
// maven {
|
||||
// url 'https://maven.aliyun.com/repository/jcenter'
|
||||
// }
|
||||
// maven {
|
||||
// url 'https://maven.aliyun.com/repository/central'
|
||||
// }
|
||||
// maven {
|
||||
// url 'https://maven.aliyun.com/repository/google'
|
||||
// }
|
||||
google()
|
||||
mavenCentral()
|
||||
|
||||
}
|
||||
gradle.projectsEvaluated {
|
||||
tasks.withType(JavaCompile) { // 用于显示过时 API 的详细信息
|
||||
|
||||
Loading…
Reference in New Issue
Block a user