- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
无法解析 ':business:diary@debug/compileClasspath': Could not resolve project :fun:push.
的依赖关系
无法解析项目:fun:push。
要求:
项目:商业:日记
Unable to find a matching configuration of project :fun:push: - Configuration 'jpushDebugApiElements': - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value 'Apk'. - Found com.android.build.gradle.internal.dependency.VariantAttr 'jpushDebug' but wasn't required. - Required map 'amap' but no value provided. - Required org.gradle.api.attributes.Usage 'java-api' and found compatible value 'java-api'. - Required push 'jpush' and found compatible value 'jpush'. - Configuration 'jpushDebugMetadataElements': - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'. - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found incompatible value
xây dựng.gradle
文件。创建了一个新文件
config.gradle
作为:
project.ext {
setDefaultConfig = {
extension ->
extension.android {
biên dịchSdkPhiên bản 25
buildToolsVersion "25.0.3"
Cấu hình mặc định {
minSdkVersion 16
targetSdkVersion 22
Phiên bảnMã 1
Phiên bản "1.0"
multiDexEnabled true
missingDimensionStrategy 'map', mapImplFlavor//add to here
missingDimensionStrategy 'push', pushImplFlavor
ndk {
abiFilters 'armeabi', 'x86','armeabi-v7a'
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [moduleName: project.getName()]
}
}
}
}
println("extension : " + extension.android.defaultConfig.getMissingDimensionStrategies().toString())
}
xây dựng.gradle
导入了这个文件:
apply from: "${rootProject.rootDir}/config.gradle"
apply plugin: AutoBuild
Android {
project.ext.setDefaultConfig project //import above code
resourcePrefix "diary_"
`````
com.android.application
hoặc
com.android.library
plugin(即不直接在
xây dựng.gradle
文件中)等操作。当我同步或清理项目时出现此问题,但构建成功。
config.gradle
,我还添加了
inject missingDimensionStrategy
在 AutoBuild 插件中,但它没有解决。请帮忙!
1 Câu trả lời
最后我在模块 xây dựng.gradle
中添加了以下代码文件解决此问题:
apply from: "${rootProject.rootDir}/config.gradle"
if (!gradle.startParameter.taskNames.toString().toUpperCase().contains('ASSEMBLE')) {
áp dụng plugin: 'com.android.application'
} khác {
apply plugin: com.fec.buildgradle.AutoBuild
}
Android {
project.ext.setDefaultConfig project
resourcePrefix "diary_"
xây dựng các loại {
giải phóng {
minifyEnabled sai
proguardFiles lấyMặc địnhProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// in runtime following code is invalid just for sync and clean
if (!gradle.startParameter.taskNames.toString().toUpperCase().contains('ASSEMBLE')) {
sourceSets {
chủ yếu {
manifest.srcFile "src/main/runAlone/AndroidManifest.xml"
}
}
}
}
phụ thuộc {
biên dịch fileTree(bao gồm: ['*.jar'], dir: 'libs')
compile project.ext.dependencies["constraint-layout"]
annotationProcessor project.ext.dependencies["arouterCompiler"]
api project(':baseLib:core')
}
关于android studio 3.0 : Could not resolve project :fun:push. 要求:项目:业务:日记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46298273/
这是我的代码: public void readFile() throws IOException { System.out.println("Input file name: ");
我正在为我的 8 年级社会研究课写一本内战日记,我将它呈现为一个 HTML 文件,其中包含每本日记的标题和日期。当我点击每个条目时,它应该打开实际的日记条目并关闭任何其他打开的条目。单击日志后,我无法
无法解析 ':business:diary@debug/compileClasspath': Could not resolve project :fun:push. 的依赖关系 无法解析项目:fun
Tôi là một lập trình viên xuất sắc, rất giỏi!