ERROR: Module 'playerlib': platform 'android-28' not found - android

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

Related

Android studio 3.1 on Windows 10 aapt2 is missing 27.0.3 sdk

trying to develop a simple app for Android device. Have installed android studio 3.1 on Windows 10 machine and trying to build "hello World" app. keep getting error = "Cause: aapt2 is missing on 'C:\Users\xxxxx\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe'". aapt2.exe is not in the 27.0.3 folder only aapt.exe.
What am I missing? Shouldn't this just work ?
The SDK manager sometimes messes up when downloading build tools. It's not necessary to re-install Android Studio - just delete the build tools folder/version that's missing the executable and re-download that.
Open File > Project Structure and select app under Modules category from left bar. Then select a higher Build Tools Version from properties tab. The error must be gone.
In gradle.properties file put this line: android.enableAapt2=false
It worked with me

gradle project sync failed in Android studio 3.0.1

I'm new to android development and just installed Android studio version 3.0.1. I just started my first project and it's showing the below error:-
Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly.
It did suggest me to download and install SDK and NDK in the previous attempts which I did,successfully as it didn't suggest again. Now along with the above error, it also specifies the below statement:-
Error:Unable to get the CMake version located at: C:\Android\SDK\cmake\bin
I tried searching for SDK manager to install Cmake but I couldn't find it in Tools menu where it's supposed to be present.
Please help me resolve this error.
Thanks.
Follow these steps
1.You should open SDK Manager
2.Then click on SDk tools
3.. Download Cmake.
If you can't find Sdk,then try download SDk from here and expand in the main directory and then set the path for it

Xamrin android app project not getting build

I am new at xamrin android app development. I have made basic menu drawer app in xamrin. But when I try to run this project it show following warning
Severity Code Description Project File Line Suppression State
Warning An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details. 0
Severity Code Description Project File Line Suppression State
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. menu_drawer 1 Active
JDK path
C:\Program Files (x86)\Java\jdk1.6.0_21
And Android SDK Path
C:\Users\Suraj\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK
Open Tools > Option > Xamarin > Android. Are the Android SDK and JDK available?
If yes, try updating your Android SDK and JDK.
If no, download and install Android SDK and JDK to your computer.
Hope it could help.

Cant't config downloaded (zip) NDK for Android Studio (windows 7)

so I tried to download NDK from StandAlone SDK manager and it didn't have the option! then I went to google developers and read some guides and understood how to get it via android Studio
there was an NDK option in SDK manager -> SDK tools tab , I checked it and after applying it started downloading it, but for some reason after download, it fails to install it (tried 2 time it fails at end of unzipping process at like 100% :| ) ***Note: I have enough space available, 4gb on windows drive, 20gb on SDK drive
***Note2: I deleted the NDK bundle folder and its contents created by the failed install in my SDK folder
so I went to NDK Download
and downloaded the package from there , but I can't get it to work, gradle says "Error:NDK not configured.
Download it with SDK manager.)"
I tried adding the NDKfolder to PATH variable or adding NDK_HOME variable but still the same error
Update 1 : I added ANDROID_NDK_HOME variable now it says : Error:A problem occurred configuring project ':TMessagesProj'.
I had this issue of
Error:NDK not configured. Download it with SDK manager.)
But I solved my problem with this link: Add C and C++ to your Project
you can skip to the heading Download the NDK and Build Tools, but read everything for knowledge.
This error might be, your Android Studio is not able to find the NDK location.
So, try doing this: right click on your project in Android Studio,select "Open Module Settings", select SDK location tab, and provide SDK and NDK locations.

Android Project cloned from github giving error

I have created android project, and added gitignore file from gitignore and pushed to github.
Now I have cloned the same project into different system and imported into eclipse by following the instruction from here
Now I am getting errors saying
Unable to resolve target 'android-19'
WARNING: unable to write jarlist cache file /home/jayesh/Android Developement/TestApp1/bin/jarlist.cache
file permission of jarlist.cache -rwxr-xr-x
Can anyone help me with making the same project running.
I tried
1) eclipse > project > clean
2) right click on project > Android Tools > fix project properties
Android project link https://github.com/JayeshP/TestApp
It seems that you did not install the SDK Platform for kitkat in the SDK Manager. Install it or change the target SDK version.
When importing another project, make sure to enable "Copy projects in to workspace". This helps to solve many errors.
Check buttons on top left pane of Eclipse, theres one named "Android SDK manager". Go in to SDK manager and install selected default ones and Android 4.4.2 Android 19.
right click on you project -> properies -> resource
now, you should do two job:
go to "Android" and choose your suitable target
go to "java build path" and check suitable Android version ("Android4.0 for example")

Categories

Resources