- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试编译我的应用程序时,错误显示
程序类型已经存在:com.google.thirdparty.publicsuffix.TrieParser消息{kind=ERROR, text=程序类型已经存在:com.google.thirdparty.publicsuffix.TrieParser, sources=[未知源文件], tool name=Optional.of(D8)}
我的 gradle 文件有问题吗?
我的项目级别的bulid.gradle是
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:3.2.1'
/* classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'*/
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
ext.googlePlayServicesVersion = '11.4.0'
ext.supportLibraryVersion = '27.0.1'
allprojects {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
subprojects {
tasks.withType(Javadoc).all { enabled = false }
}
task clean(type: Delete) {
delete rootProject.buildDir
}
app级build.gradle是
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven {
url 'https://maven.fabric.io/public'
}
/*maven {
url 'http://sdk.uxcam.com/android/' //commented can be used later
}*/
}
/*
apply plugin: 'com.neenbedankt.android-apt'
*/
android {
lintOptions {
disable "ResourceType"
}
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath false
}
}
applicationId 'com.wedviser.matrimony'
minSdkVersion 19
targetSdkVersion 27
versionCode 31
versionName "2.0.1"
vectorDrawables.useSupportLibrary = true
//testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// Enabling multidex support.
multiDexEnabled true
manifestPlaceholders = [HOCKEYAPP_APP_ID: "cbb545807562491aaafac6118c9116a6"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/ECLIPSE_.SF'
exclude 'META-INF/ECLIPSE_.RSA'
}
flavorDimensions 'default'
productFlavors {
development {
dimension 'default'
minSdkVersion 19
applicationId 'com.wedviser.matrimony.dev'
targetSdkVersion 27
versionCode 56
versionName '1'
}
production {
dimension 'default'
minSdkVersion 19
applicationId 'com.wedviser.matrimony'
targetSdkVersion 27
versionCode 57
versionName '2.1.8'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':mobicomkitui')
implementation('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
transitive = true;
}
// for development only .need to remove for releasing //
// implementation 'net.hockeyapp.android:HockeySDK:4.1.4'
implementation files('libs/GoogleConversionTrackingSdk-2.2.4.jar')
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'de.hdodenhof:circleimageview:2.1.0'
// Account Kit
//implementation 'com.uxcam:uxcam:2.5.9@aar' // commented can be used later
implementation 'com.google.android.gms:play-services-analytics:15.0.2'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.0.4'
implementation 'com.github.bumptech.glide:glide:4.5.0'
implementation 'com.opalox.rangebarvertical:rangebarvertical:1.1'
implementation 'me.itangqi.waveloadingview:library:0.3.2'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.jakewharton:butterknife:8.6.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.facebook.android:facebook-android-sdk:4.27.0'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.github.Raizlabs.DBFlow:dbflow-core:4.0.0-beta5'
implementation 'com.github.Raizlabs.DBFlow:dbflow:4.0.0-beta5'
implementation 'org.florescu.android.rangeseekbar:rangeseekbar-library:0.3.0'
implementation 'com.mcxiaoke.viewpagerindicator:library:2.4.1@aar'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.crystal:crystalrangeseekbar:1.1.3'
implementation 'net.danlew:android.joda:2.9.9'
implementation 'com.github.aryarohit07:picasso-facedetection-transformation:0.3.0'
implementation 'com.tuyenmonkey:mkloader:1.2.0'
implementation 'org.parceler:parceler-api:1.1.9'
/* implementation 'com.google.android.gms:play-services-gcm:15.0.1'*/
implementation 'com.github.toanvc:floatingactionmenu:0.8.9'
implementation 'com.github.drawers:SpinnerDatePicker:1.0.4'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:exifinterface:27.1.1'
api 'com.github.Raizlabs.DBFlow:dbflow-processor:4.0.0-beta5'
api 'org.parceler:parceler:1.1.9'
implementation files('libs/GoogleConversionTrackingSdk-2.2.4.jar')
}
apply plugin: 'com.google.gms.google-services'
我也用过applozic聊天平台。mobicomkitui build.gradle 是
apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "5.8.5"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
api 'com.google.code.gson:gson:2.8.0'
api 'com.google.firebase:firebase-messaging:15.0.2'
api 'com.google.android.gms:play-services-maps:15.0.1'
api 'com.google.android.gms:play-services-location:15.0.1'
implementation 'de.hdodenhof:circleimageview:2.1.0'
api 'com.android.support:design:27.1.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
implementation 'com.github.bumptech.glide:glide:4.5.0'
implementation 'com.android.support:cardview-v7:27.1.1'
api project(':mobicomkit')//Note: use this for customization
implementation 'com.jakewharton:butterknife:8.6.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
//api 'com.applozic.communication.message:mobicomkit:5.8.5' //Note: use this in case customization is not required
}
/* ext {
// Where you will see your artifact in Bintray's web interface
// The "bintrayName" should match the name of the Bintray repro.
bintrayRepo = 'maven'
bintrayName = 'applozic-communication-uiwidget'
// Maven metadata
publishedGroupId = 'com.applozic.communication.uiwidget'
libraryName = 'mobicomkitui'
// Save yourself a head ache, and set this equal to the name of the Android Studio library
// module. The artifact name needs to match the name of the library.
artifact = 'mobicomkitui'
libraryDescription = 'Applozic Communication UI Widget'
libraryVersion = '5.8.5'
developerId = 'devashish'
developerName = 'Applozic'
developerEmail = 'devashish.mamgain@gmail.com'
}
apply from: 'https://raw.githubusercontent.com/attwellBrian/JCenter/master/installv1.gradle'
apply plugin: 'com.jfrog.bintray'
version = libraryVersion
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
failOnError false // add this line
source = android.sourceSets.main.java.srcDirs
//source = android.sourceSets.main.allJava
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
// Bintray
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = bintrayRepo
name = bintrayName
desc = libraryDescription
publish = true
publicDownloadNumbers = true
version {
desc = libraryDescription
// Optional. The passphrase for GPG signing'
// gpg {
// sign = true //Determines whether to GPG sign the files. The default is false
// passphrase = properties.getProperty("bintray.gpg.password")
//}
}
}
}*/
最佳答案
也许晚了,但我找到了答案,所以它是:
com.google.thirdparty.publicsuffix.TrieParser 是 Guava 的一部分,因此它可能包含在多个库中。在这种情况下,至少有包含 Guava 的 org.parceler。
要解决此编译问题,您必须更改导入 org.parceler 的方式,并像这样包含它:
implementation "org.parceler:parceler-api:1.1.12"
compileOnly "org.parceler:parceler:1.1.12"
annotationProcessor "org.parceler:parceler:1.1.12"
关于android - 程序类型已经存在 : com. google.thirdparty.publicsuffix,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50462608/
我正在尝试编写一个相当多态的库。我遇到了一种更容易表现出来却很难说出来的情况。它看起来有点像这样: {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE
谁能解释一下这个表达式是如何工作的? type = type || 'any'; 这是否意味着如果类型未定义则使用“任意”? 最佳答案 如果 type 为“falsy”(即 false,或 undef
我有一个界面,在IAnimal.fs中, namespace Kingdom type IAnimal = abstract member Eat : Food -> unit 以及另一个成功
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: What is the difference between (type)value and type(va
在 C# 中,default(Nullable) 之间有区别吗? (或 default(long?) )和 default(long) ? Long只是一个例子,它可以是任何其他struct类型。 最
假设我有一个案例类: case class Foo(num: Int, str: String, bool: Boolean) 现在我还有一个简单的包装器: sealed trait Wrapper[
这个问题在这里已经有了答案: Create C# delegate type with ref parameter at runtime (1 个回答) 关闭 2 年前。 为了即时创建委托(dele
我正在尝试获取图像的 dct。一开始我遇到了错误 The function/feature is not implemented (Odd-size DCT's are not implemented
我正在尝试使用 AFNetworking 的 AFPropertyListRequestOperation,但是当我尝试下载它时,出现错误 预期的内容类型{( “应用程序/x-plist” )}, 得
我在下面收到错误。我知道这段代码的意思,但我不知道界面应该是什么样子: Element implicitly has an 'any' type because index expression is
我尝试将 SignalType 从 ReactiveCocoa 扩展为自定义 ErrorType,代码如下所示 enum MyError: ErrorType { // .. cases }
我无法在任何其他问题中找到答案。假设我有一个抽象父类(super class) Abstract0,它有两个子类 Concrete1 和 Concrete1。我希望能够在 Abstract0 中定义类
我想知道为什么这个索引没有用在 RANGE 类型中,而是用在 INDEX 中: 索引: CREATE INDEX myindex ON orders(order_date); 查询: EXPLAIN
我正在使用 RxJava,现在我尝试通过提供 lambda 来订阅可观察对象: observableProvider.stringForKey(CURRENT_DELETED_ID) .sub
我已经尝试了几乎所有解决问题的方法,其中包括。为 提供类型使用app.use(express.static('public'))还有更多,但我似乎无法为此找到解决方案。 index.js : imp
以下哪个 CSS 选择器更快? input[type="submit"] { /* styles */ } 或 [type="submit"] { /* styles */ } 只是好
我不知道这个设置有什么问题,我在 IDEA 中获得了所有注释(@Controller、@Repository、@Service),它在行号左侧显示 bean,然后转到该 bean。 这是错误: 14-
我听从了建议 registering java function as a callback in C function并且可以使用“简单”类型(例如整数和字符串)进行回调,例如: jstring j
有一些 java 类,加载到 Oracle 数据库(版本 11g)和 pl/sql 函数包装器: create or replace function getDataFromJava( in_uLis
我已经从 David Walsh 的 css 动画回调中获取代码并将其修改为 TypeScript。但是,我收到一个错误,我不知道为什么: interface IBrowserPrefix { [
我是一名优秀的程序员,十分优秀!