version

How to check the gradle version in Android Studio?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 20:14:08
When compiling this official project with Android Studio 0.82, it shows error note: Error:The project is using an unsupported version of the Android Gradle plug-in (0.9.2) After some searching, I decide to manually change content in the build.gradle file in line classpath 'com.android.tools.build:gradle:0.9.+' to the gradle version that is installed in Android Studio. The question is, can how to check the gradle version in my Android Studio? Scott Barta File->Project Structure->Project pane->"Android plugin version". Make sure you don't confuse the Gradle version with the Android plugin

How do I list all versions of a gem available at a remote site?

流过昼夜 提交于 2019-11-29 19:38:40
I'm trying to find out all the remotely available versions of a specified gem. I tried using: gem list rhc --remote But it shows: *** REMOTE GEMS *** rhc (0.84.15) rhcp (0.2.18) rhcp_shell (0.2.12) Any ideas? opensas Well, it was easier than I thought (well, not really, let's say as easy as it should be): gem list rhc --remote --all Which returns: *** REMOTE GEMS *** rhc (0.84.15, 0.84.13, 0.83.9, 0.82.18, 0.81.14, 0.80.5, 0.79.5, 0.77.8, 0.75.9, 0.74.6, 0.74.5, 0.73.14, 0.72.29, 0.71.2, 0.69.6, 0.69.3, 0.68.5) rhcp (0.2.18, 0.2.17, 0.2.16, 0.2.15, 0.2.14, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0

Unsupported major.minor version

跟風遠走 提交于 2019-11-29 19:37:43
这种错误先效验一下自己的版本是否对应,如果版本对应正确就是 JDK版本过低需升级对应版本; 48,49,50, 51 , 52是Java编译器内部的版本号: Unsupported major.minor version 52.0 对应于 JDK1.6(JRE1.8)(sdk6.0) Unsupported major.minor version 51.0 对应于 JDK1.6(JRE1.7)(sdk 5.0) Unsupported major.minor version 50.0 对应于 JDK1.6(JRE1.6) Unsupported major.minor version 49.0 对应于 JDK1.5(JRE1.5) Unsupported major.minor version 48.0 对应于 JDK1.4(JRE1.4) 详细请参考下面的文章 http://www.oschina.net/question/207494_84715?fromerr=bRhppPcU#tags_nav 来源: oschina 链接: https://my.oschina.net/u/2262606/blog/670696

How can my Haskell program or library find its version number?

心已入冬 提交于 2019-11-29 19:31:41
I would like my cabalised program to have a --version switch. I would like it to report the same version as is present in the .cabal file. If I have to update the version number separately in my Haskell source code as well as in the .cabal file, I will eventually get them out of sync. So, how can my program, while being compiled under cabal, get its version number from the .cabal file? Don Stewart This is well supported with Cabal. As follows (from xmonad): Import Paths_$myprogram - a file Cabal creates with lots of metadata from the .cabal file, along with a the module for handling version

How to get the Java version in PowerShell

我怕爱的太早我们不能终老 提交于 2019-11-29 18:45:34
问题 I'm trying to get the Java version in PowerShell. The version string is printed to stderr , so I'm trying to redirect it to stdout and assign it to a string variable. I get the following strange error: PS P:\> & java -version 2>&1 java.exe : java version "1.7.0_25" At line:1 char:2 + & <<<< java -version 2>&1 + CategoryInfo : NotSpecified: (java version "1.7.0_25":String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError Java(TM) SE Runtime Environment (build 1.7.0_25-b17) Java

Use same CFBundleVersion and CFBundleShortVersionString in all targets

大城市里の小女人 提交于 2019-11-29 18:14:08
问题 I received the following email from Apple when I submit an app update: We have discovered one or more issues with your recent delivery for "Project". Your delivery was successful, but you may wish to correct the following issues in your next delivery: CFBundleVersion Mismatch - The CFBundleVersion value '1' of extension 'Project.app/PlugIns/ProjectTodayExtension.appex' does not match the CFBundleVersion value '985' of its containing iOS application 'Project.app'. CFBundleShortVersionString

Require minimum version of R package

落爺英雄遲暮 提交于 2019-11-29 16:32:46
问题 I just noticed that there's no version argument to R 's require() or library() functions. What do people do when they need to ensure they have at least some minimum version of a package, so that e.g. they know some bug is fixed, or some feature is available, or whatever? I'm aware of the Depends stuff for package authors, but I'm looking for something to use in scripts, interactive environments, org-mode files, code snippets, etc. 回答1: I am not aware of such a function, but it should be quite

Maven “versions” plugin - how to exclude alpha/beta versions from response?

本秂侑毒 提交于 2019-11-29 16:24:21
问题 I have an issue concerning the plugin versions. When it generates a report with the goal: mvn versions:display-dependency-updates It suggest is a lot of libraries that with beta or alpha versions. org.hibernate:hibernate-validator ......... 4.2.0.Final -> 4.3.0.Beta1 The issue is that event if the goal of this plugin is to show the very latest versions of each dependency, I don't want to use beta/alpha versions for production code. But I don't want to search manually the last stable version

How to reset Android Studio to previous version

≯℡__Kan透↙ 提交于 2019-11-29 15:55:39
问题 I recently recklessly updated AS from 3.0.1 to 3.1, but project manager says 3.0.1 is the version to be worked with in our project. Is there a way to reset AS to version 3.0.1 without having to uninstall it? 回答1: Currently there is no direct way with which a downgrade can be done. I managed to do the downgrade by downloading Android Studio 3.0.1 from here and then running the installer. It will prompt whether to uninstall previous version, and when you allow and proceed, it will remove 3.1

C# Load different versions of assembly to the same project

心已入冬 提交于 2019-11-29 13:51:38
I'm creating some tool what performs several operations like NUnit. Inside this tool I open .dll assembly and invoke methods form it to run some test. Everything is going OK till the time I need to reload .dll withour program restart. The idea is that when tool is run we copy required assembly to some temporary folder and invoke from there. If I need to reload I copy another one to another temporary folder and try to load newly copied from another folder and load to previous assembly object ExecutingAssembly = Assembly.LoadFrom(AssemblyFullPath); But my problem is that after I change