Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error downloading & installing Android SDK #41

Open
ZapdoZ opened this issue Mar 7, 2020 · 15 comments
Open

Error downloading & installing Android SDK #41

ZapdoZ opened this issue Mar 7, 2020 · 15 comments

Comments

@ZapdoZ
Copy link

ZapdoZ commented Mar 7, 2020

Trying to install the SDK gives me the following:
[INFO] Downloading and installing Android SDK...
[ERROR] Failed regex matching to find latest Android SDK (platform Windows)
[ERROR] Failed to install Android SDK

Tried this with the .exe release and with python 2.7, and I'm always getting the same error
I'm using Windows 10 x64

@shadowwalkersteam
Copy link

I'm also getting the same error. Any solution?

@klvenkatesh1994
Copy link

Any progress?

@shadowwalkersteam
Copy link

No, i'm still struggling with it

@SarahhMortada
Copy link

i m also getting the same error :(

Lazza added a commit to Lazza/WhatsDump that referenced this issue Mar 21, 2020
@Lazza
Copy link

Lazza commented Mar 21, 2020

As a very quick fix, see #42.

@Dummy60
Copy link

Dummy60 commented Mar 30, 2020

Hey! I am a complete dummy in using python and I have the same problem as mentioned above when executing the .exe release. If anyone could fix the bug would it be possible to provide a link for a download of an updated, functioning .exe-file. Thx very much

@InsalataCondita
Copy link

InsalataCondita commented Apr 14, 2020

I'm having the same problem, is there any update?
when deployed returns
[INFO] Downloading and installing Android SDK...
[ERROR] Failed regex matching to find latest Android SDK (platform Windows)
[ERROR] Failed to install Android SDK

I've also tried to install the SDK from the official site, but nothing changes

@prateekamana
Copy link

prateekamana commented May 10, 2020

@InsalataCondita @Dummy60 @SarahhMortada @shadowwalkersteam
Go to src/android_sdk.py and change the line 180 from

r = requests.get('https://developer.android.com/studio/')

to

r=requests.get('https://web.archive.org/web/20190403122148/https://developer.android.com/studio/')

as Lazza explained in #42

@bibildibabeldibub
Copy link

bibildibabeldibub commented Dec 8, 2020

Hey, i updatet the depencies with @YuvrajRaghuvanshiS commit, but i stil got an error, while updating the sdk:

[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more [ERROR] Could not update SDK Manager [ERROR] Failed to install Android SDK

Has solved this error already ?

@YuvrajRaghuvanshiS
Copy link
Contributor

Hey, i updatet the depencies with @YuvrajRaghuvanshiS commit, but i stil got an error, while updating the sdk:

[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more [ERROR] Could not update SDK Manager [ERROR] Failed to install Android SDK

Has solved this error already ?

@bibildibabeldibub It looks like the already downloaded SDK is causing trouble. It's skipping fresh download of SDK. Try deleting that folder and re run. However I'm not sure.

@bibildibabeldibub
Copy link

I done this but still got the error

@bibildibabeldibub
Copy link

Hey, i updatet the depencies with @YuvrajRaghuvanshiS commit, but i stil got an error, while updating the sdk:
[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more [ERROR] Could not update SDK Manager [ERROR] Failed to install Android SDK
Has solved this error already ?

@bibildibabeldibub It looks like the already downloaded SDK is causing trouble. It's skipping fresh download of SDK. Try deleting that folder and re run. However I'm not sure.

Maybe it is the result of wrong jdk or jre ?

@YuvrajRaghuvanshiS
Copy link
Contributor

Hey, i updatet the depencies with @YuvrajRaghuvanshiS commit, but i stil got an error, while updating the sdk:
[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more [ERROR] Could not update SDK Manager [ERROR] Failed to install Android SDK
Has solved this error already ?

@bibildibabeldibub It looks like the already downloaded SDK is causing trouble. It's skipping fresh download of SDK. Try deleting that folder and re run. However I'm not sure.

Maybe it is the result of wrong jdk or jre ?

@bibildibabeldibub I looked it up, try this

@bibildibabeldibub
Copy link

Hey, i updatet the depencies with @YuvrajRaghuvanshiS commit, but i stil got an error, while updating the sdk:
[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more [ERROR] Could not update SDK Manager [ERROR] Failed to install Android SDK
Has solved this error already ?

@bibildibabeldibub It looks like the already downloaded SDK is causing trouble. It's skipping fresh download of SDK. Try deleting that folder and re run. However I'm not sure.

Maybe it is the result of wrong jdk or jre ?

@bibildibabeldibub I looked it up, try this

Ah yes i found it too, thx it started working.

@YuvrajRaghuvanshiS
Copy link
Contributor

Hey, i updatet the depencies with @YuvrajRaghuvanshiS commit, but i stil got an error, while updating the sdk:
[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 5 more [ERROR] Could not update SDK Manager [ERROR] Failed to install Android SDK
Has solved this error already ?

@bibildibabeldibub It looks like the already downloaded SDK is causing trouble. It's skipping fresh download of SDK. Try deleting that folder and re run. However I'm not sure.

Maybe it is the result of wrong jdk or jre ?

@bibildibabeldibub I looked it up, try this

Ah yes i found it too, thx it started working.

Glad to hear that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants