android


Android Api 24 can't find sources


I have this grade file:
//ext.support_library_version = '24.0.0'
android {
compileSdkVersion 24
buildToolsVersion '24.0.0'
defaultConfig {
applicationId "---"
minSdkVersion 21
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
...
}
But then when i try to open any android related class, it says i haven't got sources for api24, even tho the buildToolsVersion '24.0.0' is installed. Any idea why?
Sources for Android N are not yet published and not available for installation in the SDK manager. When the source package becomes available, you need to install it separately, as with any previous SDK version.
Update 2016-08-24: The Android API 24 sources are now available in the SDK manager.
After downloading you might need this trick to refresh the SDK installation.
To get the newest Android API's (SDK Platform)
Make sure you update the Android SDK Tools to the latest version in
the Android SDK Manager first.
I had the same problem with API 25 and Android Studio 2.2
Try the following:
Close Android Studio.
Open ~/Library/Preferences/AndroidStudio2.2/options/jdk.table.xml or C:\Users{USER_NAME}.AndroidStudio2.2\config\options\jdk.table.xml
Note the Android Studio version in the pach.
Locate <sourcePath> for Android API 24 Platform and for previous one. You can look that <sourcePath> for problem API hasn't second <root> element with url.
Investigate path of sources, check that sources was really installed.
Copy <root> from another <sourcePath> and set correct url. It will be similar to
<sourcePath>
<root type="composite">
<root type="simple" url="file://$USER_HOME$/Library/Android/sdk/sources/android-24" />
</root>
</sourcePath>
Save the file and start Android Studio
http://stackoverflow.com/a/36825435/1263771

Related Links

How to sync Gradle/Android versionCode between build server and workstation
Android - How to implement Google Newsstand like layout?
Item ID of title ActionBar
Android activities only for developers, should I leave them in the application release?
HTTP GET request via android not working
Android SimpleDateFormt get wrong month name
Android Bluetooth auto connect
Updating textviews and imageview in same list using adapters updates only one thing
View Holder pattern not working
Push Notifications status check Android
Logo in ActionBar instead of text
java.lang.NullPointerException at HttpGet httpGet = new HttpGet(url);
drag and drop causes button to disappear
build native openCV sources with Android Studio and NDK
screenshots in android programmatically without actionbar
Android File Copy Confirm for Completeness

Categories

HOME
uml
phantom-dsl
eclipse
localization
spark-streaming
nunit
pascal
requirements
simulink
3d-reconstruction
gembox-spreadsheet
character
computer-science
dynatrace
microsoft-dynamics-nav
mvc-mini-profiler
aws-sdk
mathprog
database-connection
jquery-ias
href
game-theory
onload
maze
motion-detection
mat
sinch
eviews
xbox
volatile
paragraph
mockjax
code-snippets
login-script
nested-lists
least-squares
password-protection
setup.py
portforwarding
xbmc
openresty
magento-2.0.7
mschart
bluez
podscms
py2neo
universal-analytics
android-instrumentation
actor-platform
winusb
tinkerpop3
rspec2
jclouds
clipboard.js
exim4
jbase
concurrentmodification
opl
visual-sourcesafe-2005
mod-proxy
finalbuilder
dnssec
omnifaces
fits
execve
cocos3d
formview
jama
template-deduction
xml-dsig
functional-java
decoupling
kogrid
scmmanager
abstract-data-type
wimax
fusefabric
jsr286
google-maps-mobile
luabind
node-redis
mysql-error-1205
google-floodlight
entitydatasource
drupal-fivestar
sifr
django-piston
cldc
xpsdocument
contentpresenter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App