Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task androidJavadocs seems has a bug... #26

Open
daimajia opened this issue Jun 3, 2014 · 2 comments
Open

Task androidJavadocs seems has a bug... #26

daimajia opened this issue Jun 3, 2014 · 2 comments

Comments

@daimajia
Copy link

daimajia commented Jun 3, 2014

I made a library project, called Android Image Slider. https://github.com/daimajia/AndroidImageSlider It contains some jars, while, when I tried to upload it to maven center.

run ./gradlew clean build upload uploadArchives

......
demo:mergeReleaseResources UP-TO-DATE
:demo:processReleaseManifest UP-TO-DATE
:demo:processReleaseResources UP-TO-DATE
:demo:generateReleaseSources UP-TO-DATE
:demo:compileReleaseJava UP-TO-DATE
:demo:lintVitalRelease
:demo:compileReleaseNdk UP-TO-DATE
:demo:preDexRelease UP-TO-DATE
:demo:dexRelease UP-TO-DATE
:demo:processReleaseJavaRes UP-TO-DATE
:demo:packageRelease UP-TO-DATE
:demo:assembleRelease
:library:assembleRelease UP-TO-DATE
:demo:uploadArchives
:library:androidJavadocs

/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderAdapter.java:4: error: package android.support.v4.view does not exist
import android.support.v4.view.PagerAdapter;
^
/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderAdapter.java:15: error: can not find symbol
public class SliderAdapter extends PagerAdapter implements BaseSliderView.ImageLoadListener{
^
symbol : class PagerAdapter
/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderTypes/BaseSliderView.java:8: error: can not find symbol
import com.daimajia.slider.library.R;
^
symbol : class R
位置: 程序包 com.daimajia.slider.library
/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderTypes/BaseSliderView.java:9: error: package com.squareup.picasso does not exist
import com.squareup.picasso.Callback;
^

......

when I removed the archives androidJavadocsJar, it was ok~

@gabrielemariotti
Copy link

You can see #20 and #21

@daimajia
Copy link
Author

@gabrielemariotti I solved that.

This problem I guess is because when androidJavadocsJartask try to generate doc, but can not find jar's source file, so, that happened.

I think there should be a way to filter jar when try to generate java doc.

https://github.com/daimajia/AndroidImageSlider/blob/master/library/gradle-mvn-push.gradle#L124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants