build-tools

why can quotes be left out in names of gradle tasks

孤人 提交于 2019-12-08 21:56:26
问题 I don't understand why we don't need to add quotes to the name of gradle task when we declare it like: task hello (type : DefaultTask) { } I've tried in a groovy project and found that it's illegal, how gradle makes it works. And I don't understand the expression above neither, why we can add (type : DefaultTask) , how can we analyze it with groovy grammar? 回答1: As an example in a GroovyConsole runnable form, you can define a bit of code thusly: // Set the base class for our DSL @BaseScript

Android Build Tools only builds x86_64 no matter what. APK runs installed via adb, but shows incompatible on Play Store

你离开我真会死。 提交于 2019-12-08 17:43:59
问题 So this is happening. No matter what I try doing on the build.gradle, all APK are coming out with native_code = 'x86_64' flag, so when I deploy the app to the store the result is having +15K uncompatible devices, and only 19 compatible. I first thought that, somehow, having NDK installed was the reason, or my modified build script. But it still happens when I go through the Generate Signed APK wizard. The splits block was also originally missing, and didn't help. The weirdest thing is that

RSRuntimeException: Loading of ScriptC script failed (build tools 19.0.2)

我的梦境 提交于 2019-12-08 13:01:35
Here's my entire output: 02-26 09:55:50.410 625-640/com.vsco.cam E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java

Cannot use GLOB with JSHint in Windows?

只谈情不闲聊 提交于 2019-12-07 03:43:34
问题 I'm doing a PoC of NPM as a build tool (http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/). I'm fairly new using NPM. For now, I only have JSHint and Mocha installed. My packagae.json is attached. Now, when I run "npm run lint" in the command line (Windows 7), it gives me an error: c:\project>npm run list MyNPMProject@1.0.0 lint c:\project jshint test/*.js ERROR: Can't open test/*.js It works when I change the script "lint": "jshint test/test.js". Can I use glob with jshint?

Build Tools 21.1.2 – UNEXPECTED TOP-LEVEL EXCEPTION

白昼怎懂夜的黑 提交于 2019-12-06 02:58:34
问题 I'm suddenly running into this issue when building/running my project. Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/aidanfollestad/Documents/android-sdk/build-tools/21.1.2/dx --dex --no-optimize --output /Users/aidanfollestad/Android Projects/Impression/app/build/intermediates/dex/debug --input-list=/Users/aidanfollestad/Android Projects/Impression/app/build/intermediates/tmp/dex/debug/inputList.txt

How to use Gulp Browsersync with Django?

爷,独闯天下 提交于 2019-12-05 13:19:23
First time using Gulp and I'm following a couple of tutorials that don't seem to be working quite right for me. I have a real basic project and I just want to learn how to use Gulp for standard things like JavaScript/CSS minification, image reduction, and browser sync. When I run my watch task with Browsersync, it goes to the right URL of localhost:8000 , but it shows Cannot GET / instead of rendering my page. How do I fix this so I can use Browsersync with Django? File directory: gulpfile.js : var gulp = require('gulp'); var sass = require('gulp-sass'); var browserSync = require('browser-sync

Cannot use GLOB with JSHint in Windows?

偶尔善良 提交于 2019-12-05 08:02:05
I'm doing a PoC of NPM as a build tool ( http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/ ). I'm fairly new using NPM. For now, I only have JSHint and Mocha installed. My packagae.json is attached. Now, when I run "npm run lint" in the command line (Windows 7), it gives me an error: c:\project>npm run list MyNPMProject@1.0.0 lint c:\project jshint test/*.js ERROR: Can't open test/*.js It works when I change the script "lint": "jshint test/test.js". Can I use glob with jshint? Please advise and thank you in advanced. You shouldn't need the glob, just give it the directory and it

Android build tools 1.1.0, unit test folder?

偶尔善良 提交于 2019-12-05 05:29:52
I recently installed the latest tools from google to my android project: buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } } allprojects { repositories { jcenter() } } apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.xxx" minSdkVersion 10 targetSdkVersion 21 versionCode 200 versionName "2.0" testInstrumentationRunner "android.support

Visual Studio wants to build with wrong platform toolset

六月ゝ 毕业季﹏ 提交于 2019-12-04 23:44:50
I have upgraded a solution from VS2010 to VS2012. I did that with other solutions, and it worked fine. But now when I tried to build the updated solution, the compiler tells me: Error 1596 error MSB8020: The builds tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install Visual Studio 2010 to build using the Visual Studio 2010 build tools. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets 42 5

How to replace in stream using Gulp?

拥有回忆 提交于 2019-12-04 04:29:21
I try to switch from Grunt to Gulp and I have an issue: I read two streams from two files var fileStream = gulp.src(file); var injectionStream = gulp.src(injection) .pipe(replace('#class-name#', argv.cname)); If my console argument "--remove" is absent I have no problem to concatenate these streams .pipe(concat('animation.styl')) .pipe(gulp.dest('./dist')) However when '--remove' is true I want to delete injection, in other words, subtract injectionStream from fileStream. I tried: var es = require('event-stream'); es.replace() var replace = require('gulp-replace'); It works with strings, but I