LayoutCast icon indicating copy to clipboard operation
LayoutCast copied to clipboard

no valid android project found

Open wangpeiyuan opened this issue 9 years ago • 2 comments

image

wangpeiyuan avatar Oct 22 '15 08:10 wangpeiyuan

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",

wangpeiyuan avatar Oct 27 '15 02:10 wangpeiyuan

need include 'app'

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

zhiqinliao avatar Jul 22 '16 11:07 zhiqinliao