java - 无法使用 IdeEventQueue 错误构建应用程序
问题描述
我正在尝试重建一个之前成功构建且没有错误的应用程序......我正在使用:
Android Studio 3.5.3 <br/>
Build #AI-191.8026.42.35.6010548, built on November 15, 2019<br/>
JRE: 1.8.0_202-release-1483-b03 amd64<br/>
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o<br/>
Windows 10 10.0
现在我有这个错误......
EventQueue.isDispatchThread()=false Toolkit.getEventQueue()=com.intellij.ide.IdeEventQueue@677ad257
Current thread: Thread[ApplicationImpl pooled thread 7,4,Idea Thread Group] 81107438
SystemEventQueueThread: Thread[AWT-EventQueue-0 3.5#AI-191.8026.42.35.6010548 Studio, eap:false, os:Windows 10 10.0, java-version:JetBrains s.r.o 1.8.0_202-release-1483-b03,6,Idea Thread Group] 465932904
我检查了我的 gradle 文件,在我看来并没有什么问题
这是我的build.gradle(应用程序)
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.platinum.innovations.paidpad"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.gms:play-services-ads:19.3.0'
}
build.gradle(模块)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
设置.gradle
include ':app'
rootProject.name='PaidPad'
谢谢你的帮助
解决方案
经过多次试验......我只是使缓存无效并重新启动......通过互联网连接。
推荐阅读
- r - 从 R 中的 SVD 手动计算伪逆看起来不对?
- flutter - 如何显示附近的用户以便添加他们?
- javascript - 反应 createContext 抛出错误
- android - 无法访问 getSupportFragmentManager()
- c++ - IDA Pro - 将 HIBYTE、LOBYTE 和 __OFSUB__ 宏重写为 C++
- swift - SwiftUI:第一个动画完成后如何运行另一个动画?
- java - 在 Spring Boot AOP 中,如何在方法“Around”期间获取类注解?
- python - jupyter笔记本中的ModuleNotFoundError
- sql - 如何删除 SQL 中的重复数据?
- python - 图像文件未通过 Python 和 Flask REST API 上传到服务器