我知道存在版本冲突,但在Google发布新版本后问题仍然存在.
错误:任务':app:processCurrentDebugGoogleServices'的执行失败.请通过更新google-services插件的版本来修复版本冲突(有关最新版本的信息,请访问 https://bintray.com/android/android-tools/com.google.gms.google-services/)或将com.google.android.gms的版本更新为11.4.0.
我的build.gradle(模块:app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.x.x"
minSdkVersion 9
targetSdkVersion 26
versionCode 10
versionName "1.1"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
legacy {
minSdkVersion 9
}
current {
minSdkVersion 14
}
}
}
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'
})
testCompile 'junit:junit:4.12'
legacyCompile 'com.google.firebase:firebase-ads:10.0.1'
legacyCompile …Run Code Online (Sandbox Code Playgroud) 我使用Android Studio开发了一个Android应用程序,今天我收到的消息是有一个新版本的Google Play服务和Firebase.
从10.0.1到10.2.0.
我正在使用Google Play服务分析和广告.
我已经选择了API min 9而现在我认为广告无法在API <14中显示.
我的build.gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.ilyo.x1application"
minSdkVersion 9
targetSdkVersion 25
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:25.1.1'
compile 'com.google.firebase:firebase-ads:10.2.0'
compile 'com.google.firebase:firebase-core:10.2.0'
compile 'com.google.android.gms:play-services-ads:10.2.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
错误信息
错误:任务':app:processDebugManifest'的执行失败.清单合并失败:uses-sdk:minSdkVersion 9不能小于库中声明的版本14 [com.google.firebase:firebase-ads:10.2.0] …
我开发了一个 Web 应用程序,使用Node.js作为后端,使用 HTML/CSS/JS 作为前端。我正在尝试使用Express框架构建一个单页应用程序。
我想仅使用 Node.js 或 JavaScript 构建一个单页面应用程序,我知道对于响应我们可以调用类似的东西res.render('contact'),但这在我的情况下不起作用,因为我不想动态更改我的页面,我不'不需要任何额外的框架,如 React、Angular……
在我的index.html页面上,有一个菜单,其每个元素都包含一个超链接。例如,当单击索引页面中的联系人超链接时,我想在同一页面上动态显示带有表单的联系页面的内容...等,而不加载页面:
<li> <a href="/contact">Contact</a></li>
Run Code Online (Sandbox Code Playgroud)
我的server.js文件定义了路由,默认情况下我被定向到索引页面:
//to define the routes
var express = require('express'), app = express();
//to call multiple template engines easly, like html page...ect
var engines = require('consolidate');
app.engine('html', engines.nunjucks);
app.set('view engine', 'html');
app.set('views', __dirname + '/public');
app.use(express.static(__dirname + '/public'));
app.get('/', function(req, res){
res.render('index');
});
app.get('/contact', function(req, res){
res.render('views/contact');
});
var server = app.listen(8080, function(){
console.log('Listening …Run Code Online (Sandbox Code Playgroud)