Ich habe keine Internetverbindung auf meinem Rechner (aus irgendwelchen Gründen) und ich möchte Android Studio (3) ohne Abhängigkeit vom Internet benutzen.Wie alle Abhängigkeiten von Android Studio entfernen?
Ich habe eine sehr einfache (Standard) App erstellt, aber viele Fehler bekommen, ich habe die Gradle auf die lokale und remove/set offline Arbeitsoption geändert, aber nichts hat funktioniert.
Fehler:
Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could
not resolve com.android.support:appcompat-v7:26.+.
<a href="openFile:C:/MyApplication/app/build.gradle">Open File</a><br><a
href="Unable to resolve dependency for
':[email protected]/compileClasspath': Could not resolve
com.android.support:appcompat-v7:26.+.">Show Details</a>
Error:Unable to resolve dependency for
':[email protected]/compileClasspath': Could not resolve
com.android.support:appcompat-v7:26.+.
<a href="openFile:C:/MyApplication/app/build.gradle">Open File</a><br><a
href="Unable to resolve dependency for
':[email protected]/compileClasspath': Could not resolve
com.android.support:appcompat-v7:26.+.">Show Details</a>
Error:Unable to resolve dependency for ':[email protected]/compileClasspath':
Could not resolve com.android.support:appcompat-v7:26.+.
<a href="openFile:C:/MyApplication/app/build.gradle">Open File</a><br><a
href="Unable to resolve dependency for
':[email protected]/compileClasspath': Could not resolve
com.android.support:appcompat-v7:26.+.">Show Details</a>
Error:Unable to resolve dependency for
':[email protected]/compileClasspath': Could not resolve
com.android.support:appcompat-v7:26.+.
<a href="openFile:C:/MyApplication/app/build.gradle">Open File</a><br><a
href="Unable to resolve dependency for
':[email protected]/compileClasspath': Could not resolve
com.android.support:appcompat-v7:26.+.">Show Details</a>
build.gradle (app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.administrator.myapplication"
minSdkVersion 23
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}
build.gradle (Projekt):
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
// 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
}