build-tools

App crashing on Android API less than 5.0(lollipop)

拈花ヽ惹草 提交于 2019-12-01 02:42:27
问题 The problem I am facing is that my android application works well on devices having API 5.0 and above but crashes on devices having Kitkat(4.4) and its corresponding lower versions.I know that its somehow related to the build tools in my gradle file,but still not able to figure out the problem.Could someone please help me out with this. This is my gradle file, buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' }

No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating')

风流意气都作罢 提交于 2019-11-30 17:01:54
I am getting these two error messages when trying to compile: /Users/dericw/coding/myApplication/lfdate/android/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.2.1/res/values-v23/values-v23.xml Error:(3, 5) No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating'). Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/dericw/Library/Android/sdk/build-tools/23.0.2/aapt'' finished

Build tools update breaks my compile

旧时模样 提交于 2019-11-30 15:23:53
I updated Android Studio 2.0 Preview from 4 to 5 this morning. If I continue to build with: dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha3' } this will still compile successfully. But if I move up to -alpha5 I get this error: Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. java.io.FileNotFoundException: C:....\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified) Shawn Thye From now on, I think Google expects us to not use this: 'com.google.android.gms:play-services:8.4.0'

Unable to compile Rust hello world on Windows: linker link.exe not found

廉价感情. 提交于 2019-11-30 11:48:44
I have installed Rust on windows from Rust installation page . After installation I tried running the "hello world" program but got the following error. >cargo run Error Compiling helloworld v0.1.0 (C:\Users\DELL\helloworld) error: linker `link.exe` not found note: The system cannot find the file specified. (os error 2) note: the msvc targets depend on the msvc linker but `link.exe` was not found note: please ensure that VS 2013, VS 2015 or VS 2017 was installed with the Visual C++ option error: aborting due to previous error error: Could not compile `helloworld`. To learn more, run the

What server does ng serve use when using Angular CLI 1.6.0?

感情迁移 提交于 2019-11-30 11:45:07
What server does this Angular CLI command use, when using Angular CLI 1.6.0? ng serve Since webpack is now being used by the Angular CLI for the website bundling, does that mean ng-serve is using the webpack-dev-server (which is a Node.js Express server)? There is some indication in the following Q/A that ng serve possibly used to piggyback off a server used by Ember: What happens when you run ng serve? Try ng eject This command will override your package.json and also generates a file called webpack.config.js in your root directory. That will give you all the current webpack configuration

How to use Webpack 4 SplitChunksPlugin with HtmlWebpackPlugin for Multiple Page Application?

寵の児 提交于 2019-11-30 10:58:31
问题 I'm trying to utilize the SplitChunksPlugin to produce separate bundles per each page/template in a MPA. When I use the HtmlWebpackPlugin, I get an html file for each page with a script tag pointing to the correct bundle. That is great! However, the trouble I'm having is with my vendor files. I want separate html files to point to only the vendor bundles they need. I can't get each separate html file to point to the correct vendor bundles when the SplitChunksPlugin creates multiple vendor

Clean Blank Android App fails to build - 'failed to find Build Tools revision 23.0.0 rc1'

醉酒当歌 提交于 2019-11-30 09:37:30
New to Android, Tried to build a clean 'Blank App' android project. I get the below error, which is confusing because I have version 24 installed using the SDK manager not sure why its looking for versoin 23. It doesn't give me any kind of line number to look at though, any suggestions? Thank you. Configuration on demand is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE :app

Can I pass arguments to angular-cli at build-time

微笑、不失礼 提交于 2019-11-30 07:58:20
I would like to pass custom arguments to angular-cli when building an Angular2 (typescript) app. Is this possible? How can I access this arguments in my code? The scenario is like this: I have one Angular2 app with 2 layouts. Each layout has 3 colors (red, blue, green). I want to build all possible combinations. One app per layout and color => layout1red, layout1green, layout2blue, ... I want to create 6 JSON config files for each build where I define the layout and color, and maybe some additional properties. It is possible to create multiple configuration files with @angular/cli . As

cmake: compilation statistics

南楼画角 提交于 2019-11-30 06:49:20
I need to figure out which translation units need to be restructured to improve compile times, How do I get hold of the compilation time, using cmake, for my translation units ? I would expect to replace the compiler (and/or linker) with 'time original-cmd'. Using plain 'make', I'd say: make CC="time gcc" The 'time' program would run the command and report on the time it took. The equivalent mechanism would work with 'cmake'. If you need to capture the command as well as the time, then you can write your own command analogous to time (a shell script would do) that records the data you want in

Define buildconfigfield for an specific flavor AND buildType

牧云@^-^@ 提交于 2019-11-30 02:41:21
I have 2 flavors, lets say Vanilla and Chocolate. I also have Debug and Release build types, and I need Vanilla Release to have a field true, while the other 3 combinations should be false. def BOOLEAN = "boolean" def VARIABLE = "VARIABLE" def TRUE = "true" def FALSE = "false" VANILLA { debug { buildConfigField BOOLEAN, VARIABLE, FALSE } release { buildConfigField BOOLEAN, VARIABLE, TRUE } } CHOCOLATE { buildConfigField BOOLEAN, VARIABLE, FALSE } I'm having an error, so I guess the debug and release trick doesnt work. It is possible to do this? Loop the variants and check their names: