質問編集履歴
1
詳細なコードと現在のエラーを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,3 +13,119 @@
|
|
13
13
|
|
14
14
|
このエラーの解決法をご教授いただけないでしょうか
|
15
15
|
|
16
|
+
---------------------------------------------------------
|
17
|
+
追記:何件の記事を読んだかはわからないですがその都度修正を繰り返した結果
|
18
|
+
|
19
|
+
build.gradle(:app)
|
20
|
+
```java
|
21
|
+
plugins {
|
22
|
+
id 'com.android.application'
|
23
|
+
}
|
24
|
+
|
25
|
+
android {
|
26
|
+
compileSdk 31
|
27
|
+
|
28
|
+
defaultConfig {
|
29
|
+
applicationId "local.hal.st31.android.drivequickstart"
|
30
|
+
minSdk 26
|
31
|
+
targetSdk 31
|
32
|
+
versionCode 1
|
33
|
+
versionName "1.0"
|
34
|
+
|
35
|
+
multiDexEnabled true
|
36
|
+
|
37
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
38
|
+
}
|
39
|
+
|
40
|
+
buildTypes {
|
41
|
+
release {
|
42
|
+
minifyEnabled false
|
43
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
compileOptions {
|
47
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
48
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
49
|
+
}
|
50
|
+
|
51
|
+
repositories {
|
52
|
+
google()
|
53
|
+
mavenCentral()
|
54
|
+
jcenter()
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
}
|
59
|
+
|
60
|
+
dependencies {
|
61
|
+
|
62
|
+
implementation 'androidx.appcompat:appcompat:1.4.1'
|
63
|
+
implementation 'com.google.android.material:material:1.5.0'
|
64
|
+
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
65
|
+
|
66
|
+
implementation 'com.google.api-client:google-api-client:1.33.0'
|
67
|
+
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.32.1'
|
68
|
+
implementation 'com.google.apis:google-api-services-drive:v3-rev20211107-1.32.1'
|
69
|
+
|
70
|
+
implementation 'com.android.support:multidex:2.0.1'
|
71
|
+
|
72
|
+
implementation "com.android.tools.build:gradle:4.2.1"
|
73
|
+
|
74
|
+
|
75
|
+
//testImplementation 'junit:junit:4.13.2'
|
76
|
+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
77
|
+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
78
|
+
}
|
79
|
+
```
|
80
|
+
build.gradle(プロジェクト名)
|
81
|
+
```java
|
82
|
+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
83
|
+
plugins {
|
84
|
+
id 'com.android.application' version '7.1.2' apply false
|
85
|
+
id 'com.android.library' version '7.1.2' apply false
|
86
|
+
}
|
87
|
+
|
88
|
+
allprojects {
|
89
|
+
repositories {
|
90
|
+
jcenter()
|
91
|
+
maven { url 'https://maven.google.com' } // 追加した行
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
task clean(type: Delete) {
|
96
|
+
delete rootProject.buildDir
|
97
|
+
}
|
98
|
+
```
|
99
|
+
settings.gradle(プロジェクト名)
|
100
|
+
```java
|
101
|
+
pluginManagement {
|
102
|
+
repositories {
|
103
|
+
gradlePluginPortal()
|
104
|
+
google()
|
105
|
+
mavenCentral()
|
106
|
+
}
|
107
|
+
}
|
108
|
+
dependencyResolutionManagement {
|
109
|
+
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
110
|
+
repositories {
|
111
|
+
google()
|
112
|
+
mavenCentral()
|
113
|
+
jcenter()
|
114
|
+
maven { url 'https://maven.google.com' } // 追加した行
|
115
|
+
|
116
|
+
}
|
117
|
+
}
|
118
|
+
rootProject.name = "DriveQuickstart"
|
119
|
+
include ':app'
|
120
|
+
|
121
|
+
```
|
122
|
+
というようになっていて
|
123
|
+
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
|
124
|
+
|
125
|
+
といったエラーが出ています
|
126
|
+
このエラー自体も調べたのですが解決法がわかりません
|
127
|
+
皆様のお力をお貸し頂けないでしょうか。
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|