I reinstall my windows and android studio . after the installation , I change the sdk folder in android studio settings to the sdk that was before the re installation .
now , I get this error:
Gradle sync failed: Failed to find target with hash string 'android-28'
I've tried everything , invalidate, restart, remove the platform for android-28 and re download it via sdk manager , removed .gradle folder and every thing I knew
this is the image from my sdk manager :
could you help me ? how can I solve this problem ?
In the SDK Manager enable the "show package details"
then select the android sdk and build tools to download.
Then check the build.gradle content.
Related
When I try to run my android build, I get the error - ERROR: Module 'playerlib': platform 'android-28' not found.
I went to tools -> SDK Manager to download Android 28 but I am not sure what to download exactly. Can someone provide me a screenshot.
First of all you need to update your SDK manager that too essential tools are: build tools platform tools tools and android Emulator.
Now go to LOGCAT, click on configure sdk and put it to latest and click auto-config button for each bar.
That should be it, rebuild it. Your Activity.xml file will be displayed with out any warning or error.
Image
I am new to android.
I just downloaded and installed android studio.
I made a new project helloworld.
while building that I get error
Error:A problem occurred configuring project ':mobile'.
Failed to find target with hash string 'android-26' in: /home/sandip/Android/Sdk
I read the suggestions and concluded that I have to load android sdk-26 api.
So, I need to launch Tools->Android->SDK Manager .
But I do not have Android option under tools
The cause is that the project was not building. I used SDK Manager (SDK Manager SDK Manager in the toolbar) to install Android SDK Platform 26 then ran build again.
Check the "Show Package Details" box in SDK Manager to bring up the detailed packages otherwise Platform 26 may not show up. After the build, I ran into another error. Installing SDK Build Tools 26.0.2 finally allowed the project to build.
I imported a project created from Android Studio earlier version. I am running Android Studio 1.4.1.
I am getting following error message:
Error:The SDK directory '/media/delta/f2164b84-872f-493c-9d9f-8edf44dc4428/home/delta/Android/Sdk' does not exist.
Please fix the 'sdk.dir' property in the local.properties file.
Open File
The SDK directory it is referring to /media/delta/f2164b84-872f-493c-9d9f-8edf44dc4428/home/delta/Android/Sdk does not exist in my machine.
I tried all suggestion proposed by:
Gradle Project Sync Failed - Android Studio
I change sdk.dir in local.properties file to actual sdk folder still does not work. Please help.
Go to
File -> project Structure into Project Structure
Left -> SDK Location
SDK location select Android SDK location (old version use Press +,
add another sdk)
Then sync project with gradle files
I get the following error as shown below when I try to uninstall ADT version 21 because I need to update it to version 23(or whatver the latest version is)
ERROR:
An error occurred while uninstalling session context was:
(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall,
operand=[R]org.eclipse.rcp.configuration_root.win32.win32.x86 1.0.0.I20120608-1200 -->
null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
Backup of file E:\adt-bundle-windows-x86\adt-bundle-windows-x86\eclipse\eclipse.exe failed.
Can not remove : E:\adt-bundle-windows-x86\adt-bundle-windows-x86\eclipse\eclipse.exe
I also cannot setup the Android SDK in the preference section because Android SDK requires Android Developer Toolkit version 23.0.0 or above. Current version is 21.0.1.2012-12-6-2-58.
So I need to update ADT but I get error as shown in the picture.
I tried running as Administrator while uninstalling, also tried disabling Antivirus software but it doesn't work.
It happens due to the name of .exe file of eclipse.
take a back up of eclipse.exe file and rename the existing eclipse.exe then copy the back up file again into the same folder of eclipse and open the old eclipse which is not renamed
after that ,
follow the same procedure to install the ADT
exit the window manually and again start it
I've installed eclipse, ADT plugin for it and I get an error "Location of the Android SDK has not been setup in the preferences". I go to preferences but I can't find the root directory of android SDK. Where is it?
edit:
I've set the location to the preferences. Now I get the error 'Android SDK Content Loader' has encountered a problem parseSdkContent failed
Have you downloaded the SDK starter package from here? If not download to a directory of your choice and then point Eclipse to that directory.