mmin18 / LayoutCast

Cast android code and resource changes to the running application through ADB.
1.71k stars 173 forks source link

no valid android project found #66

Open wangpeiyuan opened 9 years ago

wangpeiyuan commented 9 years ago

image

wangpeiyuan commented 9 years ago

this problem in cast.py

if not projlist:
        print('no valid android project found in '+os.path.abspath(dir))
        exit(3)

and projlist is to find project list and launch project

projlist = [i for i in list_projects(dir) if is_launchable_project(i)]

so,i think should setting.gradle cause this problem because my setting.gradle like this

//List all projects here
String[] projects = [
        "MainProject",
        "lib_1",
        "lib_2",
];
//include and config projects
for (String p : projects) {
    include p;
    project(":" + p).projectDir = new File(p)
}

then i change

include ':MainProject', ':lib_1', ":lib_2",
zhiqinliao commented 8 years ago

need include 'app'

the app contain build.gradle file the file contain apply plugin: 'com.android.application'