From 9a6379fb1d022a934bca038a7c6aed80351b9901 Mon Sep 17 00:00:00 2001 From: rogerAce Date: Tue, 24 Nov 2015 20:10:15 +0800 Subject: [PATCH 1/2] update --- cast.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cast.py b/cast.py index 3025272..e3a7da1 100644 --- a/cast.py +++ b/cast.py @@ -758,6 +758,14 @@ def scan_port(adbpath, pnlist, projlist): aaptargs = [aaptpath, 'package', '-f', '--auto-add-overlay', '-F', os.path.join(bindir, 'res.zip')] aaptargs.append('-S') aaptargs.append(binresdir) + + # Error Fix - roger + exporesdir = os.path.join(dir, 'build', 'intermediates', 'exploded-aar') + aaptargs.append('-S') + aaptargs.append(os.path.join(exporesdir, 'com.android.support/appcompat-v7/23.0.1/res')) + aaptargs.append('-S') + aaptargs.append(os.path.join(exporesdir, 'com.android.support/design/23.0.1/res')) + rdir = resdir(dir) if rdir: aaptargs.append('-S') @@ -899,4 +907,4 @@ def remove_cache_and_exit(args, code, stdout, stderr): cexec([adbpath, 'forward', '--remove', 'tcp:%d'%port], callback=None) elapsetime = time.time() - starttime - print('finished in %dms'%(elapsetime*1000)) \ No newline at end of file + print('finished in %dms'%(elapsetime*1000)) From 0ad3ef106050be7a0df028dfa19f132366c5e411 Mon Sep 17 00:00:00 2001 From: rogerAce Date: Tue, 24 Nov 2015 20:15:01 +0800 Subject: [PATCH 2/2] update --- cast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cast.py b/cast.py index e3a7da1..bde116d 100644 --- a/cast.py +++ b/cast.py @@ -759,7 +759,7 @@ def scan_port(adbpath, pnlist, projlist): aaptargs.append('-S') aaptargs.append(binresdir) - # Error Fix - roger + #Set apcompat and design android library's res exporesdir = os.path.join(dir, 'build', 'intermediates', 'exploded-aar') aaptargs.append('-S') aaptargs.append(os.path.join(exporesdir, 'com.android.support/appcompat-v7/23.0.1/res'))