相关疑难解决方法(0)

错误:原因:无法找到所请求目标的有效证书路径

我在同步gradle时在android Studio 2.2.3中出现以下错误.

错误:原因:无法找到所请求目标的有效证书路径

我该如何解决这个问题

我也在添加我的Gradle文件

apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
    applicationId "com.sample.myapplication"
    minSdkVersion 16
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
} } dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:palette-v7:23.4.0'
testCompile 'junit:junit:4.12'
// FireBase
compile 'com.google.firebase:firebase-messaging:9.0.0'
}//Add this line
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)

和项目级别Gradle文件

buildscript {
repositories { …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio

51
推荐指数
8
解决办法
12万
查看次数

Execution failed for task ':app:checkDebugAarMetadata'

I am getting this error while running my app.

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.android.support.constraint:constraint-layout:1.1.3.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app
   > Could not find com.android.support:appcompat-v7:25.3.1.
     Searched in …
Run Code Online (Sandbox Code Playgroud)

compiler-errors android-studio

14
推荐指数
6
解决办法
3万
查看次数

无法获取https:////dl.bintray.com/lukaville/maven/com/nbsp/library/1.09

我收到如下所示的错误。

无法获取“https://dl.bintray.com/lukaville/maven/com/nbsp/library/1.09/library-1.09.pom”。从服务器收到状态代码 403:禁止

Gradle 配置如下所示。任何帮助表示赞赏。

我尝试同步项目、使缓存无效并重新启动,但没有任何效果。

构建.gradle(:应用程序)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "com.qdocs.smartschool"
        minSdkVersion 17
        targetSdkVersion 29
        versionCode 1
        versionName "3.1"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        disable 'RestrictedApi'
        checkReleaseBuilds false
        abortOnError false
    }

}

repositories {
    maven {
        url "http://d1.bintray.com/lukaville/maven"
    }
    jcenter() } dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.jakewharton.threetenabp:threetenabp:1.2.1' …
Run Code Online (Sandbox Code Playgroud)

android maven bintray android-gradle-plugin jcenter

6
推荐指数
1
解决办法
1万
查看次数

离线下载并安装Android Studio Gradle

我一直遇到互联网问题,因此为Android Studio安装gradle一直是一个大问题,因此我下载了zip文件。但是,我不知道如何离线安装它,以及如何将Android Studio设置为使用离线版本。我需要帮助。

在此处输入图片说明

android gradle android-studio android-gradle-plugin

5
推荐指数
2
解决办法
2万
查看次数

找不到 com.android.tools.build:gradle:4.0.1

错误 :

找不到 com.android.tools.build:gradle:4.0.1。在以下位置搜索:


build.gradle(项目):

 buildscript {
repositories {
    jcenter()
    google()
}
dependencies {

    classpath "com.android.tools.build:gradle:4.0.1"

   
}


}



 allprojects {
repositories {
    jcenter()
    maven {
        url 'https://jitpack.io'
    }
    google()
}

}



task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

gradle-wrapper.properties

#Mon Jul 27 15:16:19 IRDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
Run Code Online (Sandbox Code Playgroud)

看起来 google() 和 jcenter() 没有按预期工作。

我刚刚从 android studio 2.3.3 迁移到 4.0.1 。

我的问题是什么????如果您需要更多信息,请告诉我。

谢谢您的回答 :)

android gradle android-studio build.gradle android-gradle-plugin

5
推荐指数
2
解决办法
2万
查看次数

任务执行失败:app:checkDebugAarMetadata

当我构建项目时出现此类错误:

任务“:app:checkDebugAarMetadata”执行失败。

发生多个任务操作失败:执行 com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > E:\Ogma\instabeauty-client-v2\node_modules\react-native-firebase\android\build\intermediates\ 时发生失败aar_metadata\debug\aar-metadata.properties (系统找不到指定的路径) 执行 com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > E:\Ogma\instabeauty-client-v2\node_modules\ 时发生故障react-native-device-info\android\build\intermediates\aar_metadata\debug\aar-metadata.properties (系统找不到指定的路径) 执行com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction时出错> E:\Ogma\instabeauty-client-v2\node_modules@react-native-community\viewpager\android\build\intermediates\aar_metadata\debug\aar-metadata.properties (系统找不到指定的路径)

我正在使用 Android Studio 4.1 Build #AI-201.8743.12.41.6858069,构建于 2020 年 9 月 23 日 运行时版本:1.8.0_242-release-1644-b01 amd64 VM:OpenJDK 64 位服务器 VM by JetBrains sro Windows 10 10.0 GC:ParNew,ConcurrentMarkSweep 内存:1237M 核心:8 注册表:ide.new.welcome.screen.force=true

我已经搜索了很多,但似乎没有任何效果。

android-studio reactjs react-native

5
推荐指数
0
解决办法
6158
查看次数