我最近更新了我的构建工具(26.0.2),gradle(3.0.0),sdk和Android Studio(3.0)文件,现在我在尝试构建时遇到以下错误:
:app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> Illegal char <:> at index 2: \C:\Users\drew\.gradle\caches\transforms-
1\files-1.1\libjingle9803.aar\82e26da2d02a54a61bc87346a7bdcab9\jars\libs\libjingle_peerconnection.jar\..\..\tmpKgXRtF\.empty
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 43s
我已经尝试删除.gradle \ caches文件夹,我已经卸载并重新安装了所有内容,但我仍然遇到同样的错误。此外,当我尝试搜索同样的错误时,我看到很多相同的错误,但原因通常是重复的文件,这在这里没有多大帮助。
关于我接下来可以尝试的任何想法?此外,我不清楚我可以在这里添加哪些文件对问题更有帮助;我很乐意发布任何请求的文件。
build.gradle(用于项目):
buildscript {
repositories {
jcenter()
maven { url 'https://repo.eclipse.org/content/repositories/paho-releases/' }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://repo.eclipse.org/content/repositories/paho-releases/' }
}
}
build.gradle(app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '26.0.2'
defaultConfig {
// applicationId "org.eclipse.paho.android.service.sample"
applicationId "com.floor2labs.qtbp"
minSdkVersion 19
targetSdkVersion 19
multiDexEnabled true
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
versionCode 8
versionName "0.8"
setProperty("archivesBaseName", "QTbp-$versionCode")
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.txt'
// signingConfig signingConfigs.QTbp
signingConfig signingConfigs.config
}
debug {
signingConfig signingConfigs.config
}
}
}
repositories {
maven { url 'https://oss.sonatype.org/content/groups/public' }
//maven { url 'https://mvnrepository.com/artifact/javax.xml.bind/jaxb-
api'}
google()
}
dependencies {
//compile project(':ebson-0.4-20140612.044330-1')
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:23.0.0'
compile 'com.android.support:appcompat-v7:23.0.0'
//compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1'
//compile 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
compile 'com.google.android.gms:play-services:9.0.1'
compile 'com.google.android.gms:play-services-ads:9.0.1'
compile 'com.google.android.gms:play-services-auth:9.0.1'
compile 'com.google.android.gms:play-services-gcm:9.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile project(':webrtc-client')
}
build.gradle(webrtc-client):
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion '26.0.2'
defaultConfig {
minSdkVersion 19
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
compile 'io.pristine:libjingle:9803@aar' // No Crashes Here,
Latest Version Before Breaking Changes..
compile 'com.github.nkzawa:socket.io-client:0.4.2'
}