我有两个gradle模块,$dn1 = 'SELECT count(id) as recip, id as recipid, (select count(*) from pm) as npm from users where username="'.$recip.'"';
$id = mysqli_real_escape_string(mysqli_query($link, $dn1['npm']+1));
$sql = 'insert into pm (id, id2, title, user1, user2, message, timestamp, user1read, user2read)values("'.$id.'", 1, "'.$title.'", "'.$_SESSION['userid'].'", "'.$dn1['recipid'].'", "'.$message.'", "'.time().'", "yes", "no")';
和:app
。后端包含:backend
中需要的一些类。所以我通常会将:app
添加到我的app模块的依赖项中。
但是,这会将所有的后端及其依赖项添加到compile project(':backend')
。有没有办法告诉gradle只从:app
到:backend
添加特定的类或包(及其依赖项)?
编辑::app
是一个AppEngine模块,其中包含一系列重复的Google依赖项,当我不使用:backend
配置时,它会与我的Android应用程序冲突。
答案 0 :(得分:0)
删除所有传递依赖项
compile (project(path: ':backend', configuration: 'android-endpoints')) {
transitive = false
}
忽略其中一些
compile (project(path: ':backend', configuration: 'android-endpoints')) {
exclude(group: 'some.group', module: 'some.module')
}