teleop app android,Android Studio| app| build.gradle (4)

本文介绍了Android应用在build.gradle文件中的配置修改,特别是应用ID的变更对后台打印和应用识别的影响。强调了在遇到问题时,通过查看错误日志进行自我诊断的重要性,提供了Android Studio项目构建和依赖管理的相关链接作为参考。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

***********************************************

* app| build.gradle: 包重命名后,app| build.gradle也要相应的改,是改应用id,后台打印和应用区别用的是应用id号。

applicationId"com.iot.smartdemo"

***********************************************

* app| build.gradle

indigo_devel| build.gradle

buildscript {

}

//apply plugin: 'catkin'

allprojects {

}

subprojects {

}

defaultTasks'assembleRelease', 'uploadArchives'

dependencies {

}

** teleop| build.gradle

dependencies {

}

apply plugin:'com.android.application'

android {

}

** indigo-devel| gradle|wrapper| gradle-wrapper.properties

#Mon Jun 20 11:38:32 CST2016

distributionBase=GRADLE_USER_HOME

distributionPath=wrapper/dists

zipStoreBase=GRADLE_USER_HOME

zipStorePath=wrapper/dists

distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

** settings| gradle

Use default gradel wrapper(recommended)

Build Tools Version:23.0.3

Flavors| Min Sdk Version:API 15: Android 4.0.3 (IceCreamSandwich)

Dependencies:

** 经验:多看错误记录、日志,自己理解后解决,不用盲目google。

***********************************************

* app| build.gradle 完整的gradle脚本http://stormzhang.com/devtools/2015/01/15/android-studio-tutorial6/

apply plugin:'com.android.application'

def releaseTime() {

}

android {

}

dependencies {

}

***********************************************

* app| build.gradle

android {

}

参考http://blog.csdn.net/chengkaizone/article/details/51365020#t4

***********************************************

* configurations语句

configurations { } https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#org.gradle.api.Project:configurations(groovy.lang.Closure)

Configures the dependencyconfigurations for this project.

This method executes thegiven closure against the ConfigurationContainer for this project. TheConfigurationContainer is passed to the closure as the closure's delegate.

Examples:

See docs forConfigurationContainer

Delegates to:

ConfigurationContainerfrom configurations

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值