在Android Studio中创建新项目后,我在项目中添加了Firebase和Firebase消息,如手册中所述.
但是,在Gradle同步后,IDE会显示错误:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0-beta01, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0-beta01 and com.android.support:support-media-compat:26.1.0
没有Firebase库,项目就可以正确构建.
项目级别build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual …Run Code Online (Sandbox Code Playgroud) 我写了一个简单的C ++程序,代码如下:
// ??????? 72, ?????? 2.18
#include <iostream>
#define lint long long int
using std::cin;
using std::cout;
void input(lint arr[], lint arrLen) {
for (lint i = 0; i < arrLen; ++i) {
cout << "arr[" << i << "] = ";
cin >> arr[i];
}
}
void output(lint arr[], lint arrLen) {
for (lint i = 0; i < arrLen; ++i) {
cout << "newArr[" << i << "] = " << arr[i] << '\n';
}
}
bool …Run Code Online (Sandbox Code Playgroud)