MarcoG3 / WhatsDump

Extract WhatsApp private key from any non-rooted Android device (Android 7+ supported)
https://plainsec.org
GNU Lesser General Public License v3.0
268 stars 57 forks source link

Error downloading & installing Android SDK #41

Open ZapdoZ opened 4 years ago

ZapdoZ commented 4 years ago

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 commented 4 years ago

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

klvenkatesh1994 commented 4 years ago

Any progress?

shadowwalkersteam commented 4 years ago

No, i'm still struggling with it

SarahhMortada commented 4 years ago

i m also getting the same error :(

Lazza commented 4 years ago

As a very quick fix, see #42.

Dummy60 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

I done this but still got the error

bibildibabeldibub commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.