unity android sdk bulid error - android

I was working on a game for android on unity, and after I downloaded the android sdk, the ndk, the google, usb drivers and the jdk, I tried to build, but everytime I did so it popped an error to me which was
Exeption in "main" thread java.lang.NoClassFoundError
and it has been driving me nuts. I got a similar error in unity which was android is not a valid command, then I tried to update the sdk in the cmd with the command
android update sdk
which was correct but I got the same error, and so on with
sdkmanager --update sdk
Any help would be appreciated, so thanks in advance!

Edit: Wrong answer first time. Try downgrading to JDK 8.

Related

I have a problem in sdk component Installation. Can anyone help me to resolve these issues?

I am very beginner to android studio, and I want to install android studio latest version 11.0.12. on my windows 10.You can see in the attached screenshot.
Its showing multiple errors while installing. I have to install command line tool but android studio does not showing this tool to install. Flutter doctor in cmd demands to approve flutter license. How can I fix this issue?
You already have installed Android SDK build tools in your android studio, you can see in the screenshot uploaded in your question. It seems everything is okay and you are ready to start work on flutter and even without that you are good to go for development. Hope to have a good development career ahead.

How to accept Android Studio SDK Licences?

So coming straight to the issue on hand, I have installed the Android studio lastest version (3.6.3). But whenever I try to build a project and run it on Emulator it shows me an error that "I have not accepted the SDK licenses". It is not the only error that appears. I have attached a screenshot that you can see to have an idea of what the error actually is:
I tried to use the cmd method that accepts all the licenses but it is not working and cmd gives error "The system cannot find the path specified"
It is possible that I am accessing it wrong I am a complete cmd illiterate. After checking, there is no \tools\bin inside SDK folder
Also, I have tried reinstalling.
Kindly help me out. All my work is stuck because of this error.
There is usually a link to the missing tools in the error console.
If not go in the menu to Tools / SDK
Then to the tab SDK Tools
Check the sdk Build Tools as it says the gradle error message
Check the missing platform in the SDK platforms tab that says the error message too
And then you'll be prompted to accept the licenses. Be careful because it's a radio button and is a little bit hiden.
If it fails after doing this watch in the console if there is a link to install the missing tools or other clues of other things missing apart from the build tools and the SDK platform.
The issue is resolved. How I resolved it?
It was pretty easy though I just Installed three (3) more SDK-Platforms i-e Android 9.0, Android 8.1 and Android 8.0 by going to
tools\sdkmanager\sdk-platforms in Android Studio IDE
I don't know why it fixed it but it did.

Unable to detect adb version, adb output in Android Studio 3.3.2

I have done following task for solutions;
Download and update platform-tools
Change Sdk path and re-download
Uninstalled Android Sdk platform-tools and Android Sdk tools after re-install.
Update adb path in Environment
Change virtual memory size
But it's still not working... I'm using android studio version 3.3.2
error show like Unable to detect adb version means connection devices showing none when i run the app
If other solutions don't work and you're on Windows, check if Visual C ++ is installed.
If needed, you can download it here.
Just change adb.exe in location sdk\platform-tools -adb.exe and replace it. It will work. SDK folder is in users\account name\appdata\local\android\SDK\platform-tools
In my case: D:\ANDROID SETUP\sdk\platform-tools due to low c drive space ..
It will work ......
For anyone experiencing issues with Android Studio 3.3.2 not detecting Genymotion: make sure to point Genymotion to use the Android SDK ADB and not the one it's shipped with. It seems like this is because Genymotion is shipped with outdated ADB
I solved my problem. That was the visual studio installation problem. In my system visual studio c++ 2015 installed. Just repair or re-installed it.
Locate the adb.exe file in the platform-tools folder . Double-click to run it . If it shows an error message , you need to install the C++ runtime from here. Else you should up-date/reinstall the sdk
i downgrade my adb and use this as guidance
https://www.xda-developers.com/install-adb-windows-macos-linux/

How can I get Android Studio to work with Meteor

I'm running Meteor 1.4.4.2 and i'm trying to figure out how to get Android Studio to work with it. I am aware that there is a known issue with android sdk Tools 25.3.x and I have searched all over the web and seen plenty of "solutions" that simply have not worked for me. I have recently uninstalled Android Studio for like the 5th time and I now have a 25.2.3 version of sdk tools. Where can I go from here? I have the most recent version of JDK installed. I've tried downloading Android Studio and the switching out the tools folder for this older version and that got rid of my original error message in the command line (which i'm sorry I didn't save unfortunately, but it said two things. It said cordova could not find sdk tools and that there was no .gradle) but then it tried to build the app and then threw 30-50 error messages that I did not understand. My system is macOS Sierra 10.12.4
I am a true beginner in all this so thank you for your patience. Any help would be so much appreciated. Thanks!

Error while running an Android project in Eclipse

I recently have installed Android SDK in Linux Mint 32-bit. After that I also installed ADT plugin in Eclipse and Android SDK packages. Everything was fine, but when I completed my Android project and tried to run it on my AVD, then it was showing this error: "The connection to ADB is down". I tried almost everything to solve this. When I tried to run ADB from the terminal, it showed error that "Exec format error". I also updated my platform tools, but this problem is still present.
Error looks like this picture:
I've already an answer to your issue. Check it out:
for 32bit users... Don't update "plateform-tools" to version 23.1.
foremost version you can use is 23.0.1 which you can download here
If you are on 64bit machine and having trouble using the latest
version of the plateform-tools.. check instructions here.
thanks for the working link- #Tyler
FROM: android studio adb Syntax error: ")" unexpected
Check also: Unable to create Debug Bridge Unable to detect adb version. Syntax error: ")" Upgrading Platform-tools 23.0.1 to 23.1.0 Linux-32 bit causes Issue
Hope it help

Categories

Resources