Posts

Showing posts from October, 2015

android studio exists with eclipse adt project in same folder

what:  our old android project is desiged by eclipse with android developer tools(adt),now,we want to used android studio ide to open it.but other co-workers want to used eclipse in same project. how: create one build.gradle in eclipse android project: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } ///////////////////////////////////////////////////////////////////////////////////////// apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "23.0.1" defaultConfi...

android studio build.gradle default task list simple draft

bellow is andriod studio default task list in right Gradle projects panel:   assemble assembleAndroidTest assembleDebug assembleRelease build buildDependents buildNeeded compileDebugAndroidTestSources compileDebugSources compileDebugUnitTestSources compileReleaseSources compileReleaseUnitTestSources mockableAndroidJar bellow is android studio task,if your are so intelligent,your may known how get the easily answer from android studio ide. By the way,I will simply tell how write build task depends on parameters, if android studio output like:":app:generateDebugSources",your can reference it in app self project by:     task yourtaskname(dependsOn:['generateDebugSources']) ,if in other proejct,your can reference it by:     task yourtaskname(dependsOn:[':app:generateDebugSources']) bellow is default build output log: Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSourc...

android studio build.gradle quick couse 1 by pkrss

== android studio build.gradle == 1.define custom variable in module build.gradle: /////////////////////////////////////////////////////////////////////////////// // def a = true def b = "string" // /////////////////////////////////////////////////////////////////////////////// 2.use if condition variable in module build.gradle: /////////////////////////////////////////////////////////////////////////////// // if(a)     apply plugin: 'com.android.library' else     apply plugin: 'com.android.application' // /////////////////////////////////////////////////////////////////////////////// 3.define custom global whole module variable in one project build.gradle: /////////////////////////////////////////////////////////////////////////////// // 1. define it in project root build.gradle: project.ext.set("buildRelease", true) 2.used it in sub module build.gradle: if(buildRelease)     apply plugin: 'com.android.librar...

Today, my Google Play Publisher account has been terminated,and i reply

Part I English In the morning,i received one email from google. Here is content: // start ---------------------------------------------------------------------- This is a notification that your Google Play Publisher account has been terminated. REASON FOR TERMINATION: Multiple violations of the Content Policy and Developer Distribution Agreement as outlined in previous emails sent to the registered email address of your Publisher account. Please note that Google Play Publisher terminations are associated with developers, and may span multiple account registrations and related Google services. If you feel we have made an error, you can visit the Google Play Help Center article for additional information regarding this termination. Please do not attempt to register a new developer account. We will not be restoring your account at this time. The Google Play Team // end ---------------------------------------------------------------------- And i repl...