qpython icon indicating copy to clipboard operation
qpython copied to clipboard

build fail

Open damingwangguan opened this issue 7 years ago • 1 comments

gradle sync failed:The "android" command is no longer included in the SDK. Any references to it (e.g. by third-party plugins) should be removed.

damingwangguan avatar Apr 19 '18 09:04 damingwangguan

I think section "subprojects" from root build.gradle file must be removed. gradle newer than 2.2.0 supports auto updating sdk and "SDK Manager Plugin" is deprecated according to this: https://github.com/JakeWharton/sdk-manager-plugin

diff --git a/build.gradle b/build.gradle
index 9d8df85..4dca8f6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -35,17 +35,6 @@ task clean(type: Delete) {
     delete rootProject.buildDir
 }
 
-
-subprojects {
-    def androidHome
-
-    if ((androidHome = System.env.'ANDROID_HOME')
-            && (androidHome = androidHome as File).exists()
-            && androidHome.canWrite())
-        apply plugin: 'android-sdk-manager'
-}
-
-
 def supportVersion = "26.0.2"
 def rxVersion = "1.2.1"

dimon12345 avatar Apr 28 '18 05:04 dimon12345