Android Gradle Project upgrading build tools to 21.0.1: aapt throws Exception

This worked for me: It’s metadata added by tools like Photoshop that isn’t even honored by Android. Strip it. brew install exiftool find . -path ‘*src/main/res/*’ -name ‘*.png’ -exec exiftool -overwrite_original -all= {} \; Source: https://groups.google.com/forum/#!msg/adt-dev/rjTQ_STR3OE/-UcNQRISTKsJ P.S. Tested on Mac only.

Define buildconfigfield for an specific flavor AND buildType

Loop the variants and check their names: productFlavors { vanilla {} chocolate {} } applicationVariants.all { variant -> println(“Iterating variant: ” + variant.getName()) if (variant.getName() == “chocolateDebug”) { variant.buildConfigField “boolean”, “VARIABLE”, “true” } else { variant.buildConfigField “boolean”, “VARIABLE”, “false” } }

gem install json -v 1.7.3 gives ‘Please update your PATH to include build tools’

Make sure you install the devkit (ticking the checkboxes that will update the path) : You might need to reinstall ruby too. Install the DevKit Download Development Kit from here http://rubyinstaller.org/downloads/ DevKit url at this time For use with Ruby 1.8.7 and 1.9.3: DevKit-tdm-32-4.5.2 For use with Ruby 2.0 and above (32bits version only): DevKit-mingw64-32-4.7.2 … Read more

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

I downloaded and installed the Build Tools for Visual Studio 2019. During installation I selected the C++ tools. It downloaded almost 5GB of data. I restarted the machine after installation and compiling the code worked fine: > cargo run Compiling helloworld v0.1.0 (C:\Users\DELL\helloworld) Finished dev [unoptimized + debuginfo] target(s) in 12.05s Running `target\debug\helloworld.exe` Hello, world!

What are the differences between Bazel and Gradle?

Disclaimer: I work on Bazel and I’m not intimately familiar with Gradle. However, one of my coworkers wrote up a comparison of the two systems, which I will paraphrase here: Bazel and Gradle emphasize different aspects of the build experience. To some extent, their priorities are incompatible – Gradle’s desire for flexibility and non-obtrusiveness limits … Read more

How can I install the VS2017 version of msbuild on a build server without installing the IDE?

The Visual Studio Build tools are a different download than the IDE. They appear to be a pretty small subset, and they’re called Build Tools for Visual Studio 2019 (download). You can use the GUI to do the installation, or you can script the installation of msbuild: vs_buildtools.exe –add Microsoft.VisualStudio.Workload.MSBuildTools –quiet Microsoft.VisualStudio.Workload.MSBuildTools is a “wrapper” … Read more