Windows 7(32ビット)のPC1からWindows 7(64ビット)のPC2に、私の仕事は私の家庭のPCから仕事用PCに移動しています。 PC2は常にオフラインで作業しています。私はPC1の "Android Studio"で "オフライン作業"を設定して同期しました。それから私はインターネットをオフにしようとし、新しいプロジェクトを作成しました。プロジェクトは正常に構築され実行されています。2台のコンピュータ間でAndroidスタジオ3を移動する
その後、私はPC1からフラッシュドライブにコピーした次のフォルダ:
- C:\ユーザーのUser1 \ .AndroidStudio3.0 \:\ユーザーは
- Cは、ユーザー1 \は.android \します
- C:\ Androidのメーカー
- D:\ユーザーは
- D .gradleのUser1 \を\ \ AndroidSDK
とIました
- C:にPC2するためにそれらを貼り付け\ユーザー
- .gradle User2の\を\:\ユーザーのUser2 \ .AndroidStudio3.0
- Cは:\ Users \ユーザーUser2の\は
- Cが.android \ F:\ Androidのメーカー
- F:\ AndroidSDK
新しいプロジェクトのGradleコンソールで構築した後、これを書き込みます
F:\AndroidStudioProjects\app\build.gradle Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve javax.annotation:javax.annotation-api:1.2. Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download junit.jar (junit:junit:4.12): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download javawriter.jar (com.squareup:javawriter:2.1.1): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download javax.inject.jar (javax.inject:javax.inject:1): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download hamcrest-integration.jar (org.hamcrest:hamcrest-integration:1.3): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download hamcrest-library.jar (org.hamcrest:hamcrest-library:1.3): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download jsr305.jar (com.google.code.findbugs:jsr305:2.0.1): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download hamcrest-core.jar (org.hamcrest:hamcrest-core:1.3): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download junit.jar (junit:junit:4.12): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download hamcrest-core.jar (org.hamcrest:hamcrest-core:1.3): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download junit.jar (junit:junit:4.12): No cached version available for offline mode Open File
Show Details Error:Error:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download hamcrest-core.jar (org.hamcrest:hamcrest-core:1.3): No cached version available for offline mode Open File
Show Details
何が問題なのですか。しばらくの間、「オフラインモード」をオフにする
この1つを見るhttps://stackoverflow.com/questions/46949622/android-studio-3-0-unable-to-resolve-dependency-for-appdexoptions -compilecla – Nawrez