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

Universal Image Loader Fade In From Black?
What means: MediaPlayer - This is not a sprint project
SQLite two tables matching logic
Android: decode byte array into bitmap from image with xmp
Chromecast media Host State errors
Asset copy not completing
Read data from sqlitedatabase using date
Automatically Pairing A Bluetooth Remote to Android Tablet
Corona/Lua: unable to access table value after collision
HTML 5 local storage between app and browser
Adding Menu Items to jfeinstein10's SlidingMenu Library
relation between gradle version and gradle build tool version
How do I check if Android GPS is still scanning or position is fixed? not just check if enabled
requestFileSystem() in cordova not work on android app
Android - GraphView - ArrayList
android - upload pictures to dropbox

Categories

HOME
batch-file
algorithm
delphi-7
codenvy
alexa-skills-kit
depth
angular2-material
apache-spark-mllib
yahoo-finance
rds
renjin
microsoft-dynamics-nav
feathersjs
jmp
sse
asciidoctor-pdf
poedit
libigl
href
gulp-watch
inno-download-plugin
beta
beautifier
syntax-highlighting
spotipy
winexe
subclass
testcomplete
finagle
corenlp-server
cart
jmockit
slacktextviewcontroller
roblox
searchkit
docfx
node-mssql
signals-slots
magento-1.9.3
odoo-website
attributeerror
xmldocument
wc
httr
reportservice2010
netbeans6.8
dtsearch
magic-draw
edit
otp
pdf-conversion
bbpress
sandcastle
reachability
rocks
simplepie
pypiserver
xvim
intel-c++
google-books
rubaxa-sortable
extjs-grid
dock
finalbuilder
teamcity-9.1
entity-framework-4.3
actionfilterattribute
code-documentation
theos
rickshaw
cuba
mintty
alternate
ios8-extension
gae-quotas
square-bracket
synapse
mongohq
flex++
jquery-1.9
superscrollorama
alice
resource-management
booksleeve
dopostback
curb
fragmenttransaction
sentestingkit
cakephp-1.2
saleslogix
faye
azman
pinch
jquery-tools
quotation-marks
non-clustered-index
jqueryform
visualj#
todos
localizable.strings
fdf
sqlobject
product-management
information-management
httpcookie
pnrp

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