sudoを除いて、卒業用のAndroidアプリを構築できません。
-
21-12-2019 - |
質問
卒業ビルドでシンプルな「ハローワールド」Androidアプリを実行しようとしています。コマンドを発行した場合はFineを構築します。
sudo ./gradlewビルド - >ファイン
しかし、SUDOなしで、
./ gradlewビルド - >次のエラーを表示します
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':MyStudioApplication'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':MyStudioApplication:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:+.
Required by:
workspace:MyStudioApplication:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 12.621 secs
.
以下のbuild.gradle
です。buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
.
助けてください
解決
暗闇の中で撮影しても、あなたはSudoを使ってあなたの最初の卒業ビルドを実行したかもしれません。この仮定をテストするには、gradleが依存関係をダウンロードし、標準ユーザーとしてRERUN GRAGELEをダウンロードしてください。
他のヒント
シンボルを似ていない「シンボルを解決できません」という点で、SUDOとして稼働している場合は、/ HOMEディレクトリ
に.androidStudioフォルダを削除してみてください。所属していません StackOverflow