我还在[project_name]\platforms\android中创建了一个gradle.properties文件,在该文件中我为代理指定了http和https设置。和我在gradle-wrapper.properties文件中所做的一样。
ionic-v1构建[11:26:25]调用sass gulp任务。cordova build android android Studio项目检测到正在运行的命令:“C:\Program Files\nodejs\node.exe”C:\users\kaa1wa3\desktop\ionic\todo\hooks\after_prepare\010_add_platform_class.js C:\users\kaa1wa3\desktop\ionic\todo android_home=C:\users\kaa1wa3\desktop\androidsdk\androidsdk\java_home=C:\program
>
无法解析配置“:classpath”的所有文件。无法解析org.jetbrains.kotlin:kotlin-stdlib:1.1.3-2。所需:项目:>com.android.tools.build:gradle:3.0.1>com.android.tools.build:gradle:3.0.1项目:>com.android.tools.build:gradle-core:3.0.1>com.android.tools.build:gradle-core:3.0.1>com.android.tools.build:gradle-core:3.0.1>com.android.tools.build:3.0.1>com.android.tools.build:3.0.1项目1>
我的Build.Gradle文件:
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() google() jcenter{url "http://jcenter.bintray.com/"} } dependencies { // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.android.tools.build:gradle:3.0.1' } } allprojects { repositories { maven { url "https://maven.google.com" } jcenter{url "http://jcenter.bintray.com/"} } //This replaces project.properties w.r.t. build settings project.ext { defaultBuildToolsVersion="27.0.1" //String defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4 defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default } } task clean(type: Delete) { delete rootProject.buildDir }
Example to include kotlin plugin.
app/build.gradle
-----------------
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 25
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
}
build.gradle
------------
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.20'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我试图在Android Studio(使用Java)中编译我的项目,出现了以下错误: 因为我没有使用kotlin,我不明白为什么它被要求编译我的项目。 提前谢谢你。
我用react native init xxx初始化了react National应用程序,并安装了最新版本(v4.1.0)。Android Studio无法完成同步。它说: 当我从控制台运行react-antive run-android时,它说了类似的话。 我试图使用kotlin gradle插件,它不存在。:'( 只需初始化一个 react-native(0.58) 应用 Run . //
本文向大家介绍解决无法配置SQL2005问题,包括了解决无法配置SQL2005问题的使用技巧和注意事项,需要的朋友参考一下 问题:点击“SQL Server Configuration Manager”却显示“无法连接到WMI 提供程序 请注意,你只能使用SQL Server 配置管理器来管理SQL Server 2005服务器。找不到指定的模块。[0x8007007e]” 解决方法: 1、到sy
我是新来的反应和编程。我试图实现一个电子邮件验证使用这个平台。https://upmostly.com/tutorials/form-validation-using-custom-react-hooks. 期望结果:用户必须输入电子邮件,否则将在输入字段下方显示红色文本。如果您认为我应该使用其他库,如react hook forms,请告诉我 请查看下面我的工作。先谢谢你。 不工作:我仍然点击提
我们下载了项目“https://bitbucket.org/m2m/cumulocity-clients-/src/develop/”并尝试运行该项目,但我们遇到了以下问题: [信息]正在扫描项目...[错误][错误]处理POM时遇到一些问题:[致命]com.nsn.cumulocity.clients的父POM不可解析-Java:clients-Java:9.19.1-快照:无法在https:/
在此输入图像说明