【发布时间】:2014-12-29 02:21:50
【问题描述】:
我收到了这个错误
Gradle 'project_name' project refresh failed: Unable to find valid certification path to requested target
当我在 Android Studio 0.8.14 Mac OSX 上创建新项目时
Build.gradle 文件好像变空了
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.13.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
jcenter()
} }
而且我不能运行项目,看来我必须手动配置所有内容。
这里是idea.log http://pastebin.com/kyhfrBp9
【问题讨论】:
-
我会说你的 build.gradle 文件不是那么空。这是父 build.gradle,它没有定义任何公共属性。您的模块文件 (build.gradle) 将包含项目中编译单元的各个条目。你能告诉我build.gradle的内容吗(模块:...)
-
什么时候出现这个错误?建造 ?打开一个项目? .它阻止你继续吗?你能发送那个项目文件吗
-
您好,我已经解决了这个问题,确保应用程序级别构建 gradle 依赖项示例
classpath 'com.android.tools.build:gradle:2.3.3'应该与 CordovaLib Dir 构建 gradle 依赖项classpath 'com.android.tools.build:gradle:2.3.3'匹配另外,检查repositories { jcenter() }收件人repositories { maven { url "http://jcenter.bintray.com"} } -
重启一次
标签: android gradle android-studio certificate