build-tools

Visual Studio wants to build with wrong platform toolset

十年热恋 提交于 2019-12-22 02:04:20
问题 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

What is the buildToolsVersion for android SDK 24?

社会主义新天地 提交于 2019-12-21 07:26:11
问题 There's not much I can say about this. Oh well. Google released a new version of android called Nougat (android N). It is compileSdkVersion 24. However, on the build tools page in the official documentation, it is not mentioned. I want to give my app to 100% of the people using Google Play Store, which includes android N users. tl;dr: What should I fill in the buildToolsVersion field? Thanks. 回答1: buildToolsVersion should be set to 25 and 25.0.0 , as seen below: compileSdkVersion 25

Rendering Problems Exception raised during rendering: color and position arrays must be of equal length

风流意气都作罢 提交于 2019-12-19 18:15:25
问题 Hello i'm getting rendering errors in Android studio. Does someone know why this is caused? My xml: <!-- ListRow Left side Thumbnail image --> <LinearLayout android:id="@+id/thumbnail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_marginRight="5dip" android:background="@drawable/image_bg" android:padding="0dip" > <ImageView android:id="@+id/list_image" android:layout_width="50dip" android:layout_height="50dip"

MSBuild 15 Tools Version not accepted

≡放荡痞女 提交于 2019-12-19 07:35:33
问题 I have installed the MSBuild (15.4.0) tools for Visual Studio 2017 on a build server. To do this I used the link entitled "Build Tools for Visual Studio 2017" from Visual Studio Downloads The path to the MSBuild.exe is: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin I have added this path to the Environment Variable 'path'. I have a powershell script with the following as the body for the build task: msbuild '..\MyApplication.sln' /t:Build /tv:15.0 /p

cmake: compilation statistics

 ̄綄美尐妖づ 提交于 2019-12-18 12:19: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 ? 回答1: 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

Android Studio 3.0: buildToolsVersion not found in gradle files

自作多情 提交于 2019-12-17 18:27:55
问题 I recently installed new stable version of Android Studio (v3.0). Then created a new project and there was not any problem. But saw there is no buildToolsVersion field in the app-level build.gradle file. Even I searched all project files ( Ctrl Shift F ), but didn't find anything! What does this mean? And how can I determine what is the version of Build Tools in my app module? build.gradle (Project): // Top-level build file where you can add configuration options common to all sub-projects

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

心不动则不痛 提交于 2019-12-17 17:29:45
问题 We have an android gradle project. Today I wanted to upgrade the android build tools version from 20 to 21.0.1, but now the aapt is failing. * What went wrong: Execution failed for task ':myproject-android:processDebugResources'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: c:\_DEVELOP\AndroidSDK\sdk\build-tools\21.0.1\aapt.exe package -f --no-crunch -I c:\_DEVELOP\AndroidSDK\sdk\platforms\android-16\android.jar -M D:\_MY_PROJECT\trunk\myproject_bin\gradle

ant warning: “'includeantruntime' was not set”

爱⌒轻易说出口 提交于 2019-12-17 14:59:31
问题 I receive the following warning: [javac] build.xml:9: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds What does this mean? 回答1: Ant Runtime Simply set includeantruntime="false" : <javac includeantruntime="false" ...>...</javac> If you have to use the javac -task multiple times you might want to consider using PreSetDef to define your own javac -task that always sets includeantruntime="false" . Additional Details From http:/

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

。_饼干妹妹 提交于 2019-12-17 02:34:15
问题 Historically, this has been done with the Microsoft Build Tools. But it seems that the Build Tools may not be available for versions after 2015. The replacement appears to be the Visual Studio build tools, which doesn't seem to have a real homepage yet. I downloaded the VS2017 Professional installer, and went to the Individual Components tab. Right away, the summary is telling me that the Visual Studio core editor is there, taking up 753MB. I don't want the editor. Just msbuild. There is no

Maven Security Concerns

本小妞迷上赌 提交于 2019-12-13 14:18:41
问题 Are there security concerns with using Maven? I use Ant today for my main project, but I do use Maven for my "samples" project where I write program spikes. I do like some parts of Maven, but have a concern with downloading my jars through the tool. Is this an unfounded concern? How secure is "http://repo1.maven.org/maven2/"? Is there a more secure way of using the tool? Thanks. 回答1: It's pretty secure and standard. If ever the security of http://repo1.maven.org/maven2/ is compromised, there