Open esilverberg opened 9 years ago
@esilverberg I just tried running ./gradlew clean build
on master
and it compiled fine. Does this reproduce for you on a clean pull from master
or do you have some modifications?
Literally here is what I see --
FYI I have to update build tools to 23.0.1 in build.gradle. Maybe that is the culprit? That's the emacs command you see.
$ git clone git@github.com:grantland/android-autofittextview.git Cloning into 'android-autofittextview'... remote: Counting objects: 541, done. remote: Total 541 (delta 0), reused 0 (delta 0), pack-reused 541 Receiving objects: 100% (541/541), 1.06 MiB | 0 bytes/s, done. Resolving deltas: 100% (181/181), done. Checking connectivity... done. $ cd android-autofittextview/ $ emacs build.gradle $ ./gradlew clean build
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':library'.
Failed to notify project evaluation listener. SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
BUILD FAILED
Total time: 4.265 secs $ export ANDROID_HOME=~/Library/Android/sdk $ ./gradlew clean build :library:clean UP-TO-DATE :sample:clean UP-TO-DATE :library:androidJavadocs /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:45: warning: no @param for view public static AutofitHelper create(TextView view) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:45: warning: no @return public static AutofitHelper create(TextView view) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:53: warning: no @param for view public static AutofitHelper create(TextView view, AttributeSet attrs) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:53: warning: no @param for attrs public static AutofitHelper create(TextView view, AttributeSet attrs) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:53: warning: no @return public static AutofitHelper create(TextView view, AttributeSet attrs) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:61: warning: no @param for view public static AutofitHelper create(TextView view, AttributeSet attrs, int defStyle) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:61: warning: no @param for attrs public static AutofitHelper create(TextView view, AttributeSet attrs, int defStyle) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:61: warning: no @param for defStyle public static AutofitHelper create(TextView view, AttributeSet attrs, int defStyle) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:61: warning: no @return public static AutofitHelper create(TextView view, AttributeSet attrs, int defStyle) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:263: warning: no @param for listener public AutofitHelper addOnTextSizeChangeListener(OnTextSizeChangeListener listener) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:263: warning: no @return public AutofitHelper addOnTextSizeChangeListener(OnTextSizeChangeListener listener) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:275: warning: no @param for listener public AutofitHelper removeOnTextSizeChangeListener(OnTextSizeChangeListener listener) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:275: warning: no @return public AutofitHelper removeOnTextSizeChangeListener(OnTextSizeChangeListener listener) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:286: warning: no @return public float getPrecision() { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:296: warning: no @return public AutofitHelper setPrecision(float precision) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:308: warning: no @return public float getMinTextSize() { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:318: error: unknown tag: attr * @attr ref me.grantland.R.styleable#AutofitTextView_minTextSize ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:320: warning: no @return public AutofitHelper setMinTextSize(float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:331: error: unknown tag: attr * @attr ref me.grantland.R.styleable#AutofitTextView_minTextSize ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:333: warning: no @return public AutofitHelper setMinTextSize(int unit, float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:356: warning: no @return public float getMaxTextSize() { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:366: error: unknown tag: attr * @attr ref android.R.styleable#TextView_textSize ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:368: warning: no @return public AutofitHelper setMaxTextSize(float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:379: error: unknown tag: attr * @attr ref android.R.styleable#TextView_textSize ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:381: warning: no @return public AutofitHelper setMaxTextSize(int unit, float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:404: warning: no @return public int getMaxLines() { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:411: warning: no @param for lines public AutofitHelper setMaxLines(int lines) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:411: warning: no @return public AutofitHelper setMaxLines(int lines) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:423: warning: no @return public boolean isEnabled() { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:430: warning: no @param for enabled public AutofitHelper setEnabled(boolean enabled) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:430: warning: no @return public AutofitHelper setEnabled(boolean enabled) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:454: warning: no @return public float getTextSize() { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:463: warning: no @param for size public void setTextSize(float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:472: warning: no @param for unit public void setTextSize(int unit, float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:472: warning: no @param for size public void setTextSize(int unit, float size) { ^ /Users/me/Desktop/android-autofittextview/library/src/main/java/me/grantland/widget/AutofitHelper.java:27: error: unknown tag: attr
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':library:androidJavadocs'.
Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/me/Desktop/android-autofittextview/library/build/tmp/androidJavadocs/javadoc.options'
BUILD FAILED
Total time: 7.285 secs $
Hi,
When I
git clone
and attempt to build this project from the command line usinggradle build
, this is what I see:17 errors 43 warnings :library:androidJavadocs FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':library:androidJavadocs'.