My task is moving (from my home PC to my work PC) Android Studio 3.0 from PC1 on Windows 7 (32 bit) to PC2 on Windows 7 (64 bit). PC2 is always working offline. I've set in "Android Studio" on PC1 "Offline work" and synced it. Then I've tried to turn off the internet and created a new project. The project has built and run successfully.
Then I've copied to a flash drive from PC1 the next folders:
- C:\Users\User1\.android
- C:\Users\User1\.AndroidStudio3.0
- C:\Users\User1\.gradle
- D:\Android Studio
- D:\AndroidSDK
and I've pasted them to PC2 into:
- C:\Users\User2\.android
- C:\Users\User2\.AndroidStudio3.0
- C:\Users\User2\.gradle
- F:\Android Studio
- F:\AndroidSDK
After building of a new project the Gradle Console writes this:
F:\AndroidStudioProjects\app\build.gradle Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve javax.annotation:javax.annotation-api:1.2. Open File
Show Details Error:Error:Unable to resolve dependency for ':app@debugAndroidTest/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 ':app@debugAndroidTest/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 ':app@debugAndroidTest/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 ':app@debugAndroidTest/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 ':app@debugAndroidTest/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 ':app@debugAndroidTest/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 ':app@debugAndroidTest/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 ':app@debugUnitTest/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 ':app@debugUnitTest/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 ':app@releaseUnitTest/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 ':app@releaseUnitTest/compileClasspath': Could not download hamcrest-core.jar (org.hamcrest:hamcrest-core:1.3): No cached version available for offline mode Open File
Show Details
What's wrong?