No Gradle "build" task despite build.gradle applying plugin com.android.application -


somehow don't have build task:

$ ./gradlew tasks --all :tasks  ------------------------------------------------------------ tasks runnable root project ------------------------------------------------------------  build setup tasks ----------------- init - initializes new gradle build. [incubating] [wrapper] wrapper - generates gradle wrapper files. [incubating]  tasks ---------- components - displays components produced root project 'apps-android-commons'. [incubating] dependencies - displays dependencies declared in root project 'apps-android-commons'. dependencyinsight - displays insight specific dependency in root project 'apps-android-commons'. - displays message. model - displays configuration model of root project 'apps-android-commons'. [incubating] projects - displays sub-projects of root project 'apps-android-commons'. properties - displays properties of root project 'apps-android-commons'. tasks - displays tasks runnable root project 'apps-android-commons'.  build successful 

despite commons/app/build.gradle applies (as described in other qa) relevant plugin:

apply plugin: 'com.android.application'  dependencies {     compile filetree(include: '*.jar', dir: 'libs')     compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'     compile 'in.yuvi:http.fluent:1.3'     compile 'com.android.volley:volley:1.0.0'     compile 'com.nostra13.universalimageloader:universal-image-loader:1.8.4'     compile 'ch.acra:acra:4.5.0'     compile 'org.mediawiki:api:1.3'     compile 'commons-codec:commons-codec:1.10'     compile 'com.android.support:support-v4:23.4.0'     compile 'com.android.support:appcompat-v7:23.4.0'     compile 'com.android.support:design:23.4.0'      //noinspection gradledependency - old version has required feature     compile 'com.google.code.gson:gson:1.4' }  android {     compilesdkversion 23     buildtoolsversion "23.0.3"      uselibrary  'org.apache.http.legacy'      defaultconfig {         applicationid "fr.free.nrw.commons"         minsdkversion 11         targetsdkversion 23          ndk {             modulename "libtranscode"         }     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     }      lintoptions {         disable 'missingtranslation'         disable 'extratranslation'     } } 

question: why that, doing wrong?

here project structure:

root  /commons    /app 

... , execute ./gradlew in root.

if folder is:

root  /commons    /app 

... execute .gradlew in commons folder, not in root.

thanks @opal tip!


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -