简体   繁体   中英

android-sdk\docs\reference missing

While creating my JavaDoc for an Android project, I'd like to include a link to the offical online reference of Android when clicking on Android classes/packages.

As far as I know most people do this, using a linkoffline, providing the package list of android. But I there is no such file/directory android-sdk\\docs\\reference

Current ant file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
    name="api docs"
    basedir="."
    default="doc" >

    <target
        name="doc"
        description="my docs" >

        <javadoc
            access="private"
            classpath="C:\Program Files (x86)\Android\android-sdk\platforms\android-4\android.jar;.\libs\admob-sdk-android.jar"
            destdir="docs"
            doctitle="Testing the Title"
            packagenames="*"
            sourcepath="src"
            stylesheetfile="C:\Users\Johannes Staehlin\development\android\UITheme\doc\stylesheet.css"
            use="true"
            verbose="on" >

            <link
                href="http://d.android.com/reference"
                offline="true"
                packagelistloc="C:\Program Files (x86)\Android\android-sdk\docs\reference" > // <--- DOES NOT EXIST
            </link>
        </javadoc>
    </target>

</project>

BTW: I still get some warnings like

cannot find symbol
  [javadoc] public class MeetingListFragment extends Fragment {

The "docs"-folder will be created when you install the "Documentation for Android SDK" in the SDK Manager.

The documentation seems to be available for the latest Android version only.

您必须使用Android SDK Manager安装其中一个Android API的文档。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM