- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图将项目导入android studio 3.3.2(最新版本),但IDE告诉找不到(或下载)此插件!我检查了互联网连接,防火墙和其他相关问题,但无法弄清为什么android studio无法下载或找到此插件。
注意:我可以通过将链接粘贴到chrome中来下载文件。 CONFIGURE FAILED in 8s
ERROR: Could not find com.google.android.gms:oss-licenses-plugin:0.9.4.
Searched in the following locations:
https://maven.google.com/com/google/android/gms/oss-licenses-plugin/0.9.4/oss-licenses-plugin-0.9.4.pom
https://maven.google.com/com/google/android/gms/oss-licenses-plugin/0.9.4/oss-licenses-plugin-0.9.4.jar
https://jcenter.bintray.com/com/google/android/gms/oss-licenses-plugin/0.9.4/oss-licenses-plugin-0.9.4.pom
https://jcenter.bintray.com/com/google/android/gms/oss-licenses-plugin/0.9.4/oss-licenses-plugin-0.9.4.jar
https://dl.google.com/dl/android/maven2/com/google/android/gms/oss-licenses-plugin/0.9.4/oss-licenses-plugin-0.9.4.pom
https://dl.google.com/dl/android/maven2/com/google/android/gms/oss-licenses-plugin/0.9.4/oss-licenses-plugin-0.9.4.jar
Required by:
project :
这是我的gradle配置(应用程序级别):
apply plugin: 'com.android.application'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.sherdle.universal"
minSdkVersion 16
targetSdkVersion 27
multiDexEnabled true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
//Optionally configure your OneSignal IDs below
manifestPlaceholders = [manifestApplicationId : "${applicationId}",
onesignal_app_id : "",
onesignal_google_project_number: ""]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
dexOptions {
jumboMode true
}
}
repositories {
flatDir {
dirs 'libs'
}
maven {
url "https://jitpack.io"
}
jcenter()
google();
}
dependencies {
implementation 'com.devbrackets.android:exomedia:4.0.3' //TV
implementation 'com.google.android.exoplayer:exoplayer:r2.4.3' //TV & Radio
implementation 'com.cleveroad:audiovisualization:1.0.0' //Radio
implementation 'com.google.code.gson:gson:2.8.0' //WC
implementation 'com.squareup.okhttp3:okhttp:3.7.0' //WC
implementation 'org.jsoup:jsoup:1.8.3'
implementation 'com.onesignal:OneSignal:[3.9.3,4.0.0)'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.duolingo.open:rtl-viewpager:1.0.2'
implementation 'com.github.chrisbanes:PhotoView:1.3.0'
implementation 'com.android.support:multidex:1.0.3'
implementation "com.android.support:cardview-v7:$supportlib_version"
implementation "com.android.support:appcompat-v7:$supportlib_version"
implementation "com.android.support:recyclerview-v7:$supportlib_version"
implementation "com.android.support:design:$supportlib_version"
implementation "com.android.support:support-v4:$supportlib_version"
implementation "com.android.support:support-core-utils:$supportlib_version"
implementation "com.android.support:support-media-compat:$supportlib_version"
implementation "com.google.android.gms:play-services-oss-licenses:$gps_version"
implementation "com.google.android.gms:play-services-gcm:$gps_version"
implementation "com.google.android.gms:play-services-ads:$gps_version"
implementation "com.google.android.gms:play-services-maps:$gps_version"
implementation 'com.google.maps.android:android-maps-utils:0.5+'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
maven {
url 'https://jitpack.io'
}
}
}
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:3.2.1'
classpath 'com.google.android.gms:oss-licenses-plugin:0.9.4'
}
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
google()
}
}
ext {
supportlib_version = '27.1.1'
gps_version = '15.0.0'
}
//Ensure that all dependencies use the same version of the Android Support library
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion "$supportlib_version"
}
if (details.requested.group == 'com.google.android.gms'
&& !details.requested.name.contains('multidex')) {
details.useVersion "$gps_version"
}
if (details.requested.group == 'com.google.firebase'
&& !details.requested.name.contains('multidex')) {
details.useVersion "$gps_version"
}
}
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
google()
}
}
}
最佳答案
在根级别的build.gradle
中,确保您使用的是Google Maven存储库,并将oss-licenses插件添加到依赖项中:
buildscript {
repositories {
// ...
google() // maven { url "https://maven.google.com" } for Gradle <= 3
}
dependencies {
// ...
// Add this line:
classpath 'com.google.android.gms:oss-licenses-plugin:0.9.4'
}
build.gradle
中,通过在文件顶部现有
apply plugin: 'com.android.application'
下添加以下行来应用插件:
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
关于android - 找不到com.google.android.gms:oss-licenses-plugin:0.9.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55505985/
例如,我有一个父类Author: class Author { String name static hasMany = [ fiction: Book,
代码如下: dojo.query(subNav.navClass).forEach(function(node, index, arr){ if(dojo.style(node, 'd
我有一个带有 Id 和姓名的学生表和一个带有 Id 和 friend Id 的 Friends 表。我想加入这两个表并找到学生的 friend 。 例如,Ashley 的 friend 是 Saman
我通过互联网浏览,但仍未找到问题的答案。应该很容易: class Parent { String name Child child } 当我有一个 child 对象时,如何获得它的 paren
我正在尝试创建一个以 Firebase 作为我的后端的社交应用。现在我正面临如何(在哪里?)找到 friend 功能的问题。 我有每个用户的邮件地址。 我可以访问用户的电话也预订。 在传统的后端中,我
我主要想澄清以下几点: 1。有人告诉我,在 iOS 5 及以下版本中,如果您使用 Game Center 设置多人游戏,则“查找 Facebook 好友”(如与好友争夺战)的功能不是内置的,因此您需要
关于redis docker镜像ENTRYPOINT脚本 docker-entrypoint.sh : #!/bin/sh set -e # first arg is `-f` or `--some-
我是一名优秀的程序员,十分优秀!