最近在装AS的时候遇到一个问题,新建工程后,编译报错,Error:Could not determine Java version 不言而喻:可定是JDK的问题,网上查到2中可能性 第一:就是JDK路径没有关联好 解决办法: File -->Project Structure-->SDK Location,如图,设置下,JDK的位置就行 第二,这种情况应该只能MAC IOS 操作系统中遇到 就是info.plist这个配置文件下JVM Version标签,设置不对. 解决方法: 1. Find…
http://blog.csdn.net/sinat_15417921/article/details/51907728 问题背景 因为项目app分包需要,将工程的graddle版本升至了2.2.0 alpha4,而我的Android studio 一向升级为最新版,于是就出现了题目中的报错: Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try dis…
今天打开android studio又碰到一个奇怪的问题:This version of android studio is incompatible with the gradle version used.Try disabling the instant runandroid studio和gradle版本不匹配,我的android studio刚更新完没多久,应该就是gradle的问题.果然在stackoverflow上找到了答案: You can use normal build ru…
近期更新了自己Android Studio中的SDK到最新版本号,AS的一部分配置改动了. 然后 在打开布局文件的时候 会出现 渲染错误 Rendering problem the rendering library is more recent than your version of android studio 提示:如上所看到的. 这个是因为更新了SDK之后渲染版本号自己主动改变了.当前project的配置的版本号与渲染设置的版本号不同. 解决的方法例如以下. 打开随意布局文件,切换到D…
下面是一些快捷键的使用还有快速导包的设置 1. Ctrl+G 同时按下Ctrl+G快捷键弹出快速定位框,在框中输入行数点击OK即可快速切换到对应的行数,如图2.17所示. 2. Ctrl+E 同时按下Ctrl+E快捷键,弹出最近打开文件列表,可以快速选择最近曾经打开的文件 3. Ctrl+/ 选中某一行,同时按下Ctrl+/快捷键可以注释这一行,如图2.19所示. 4. Ctrl+F 同时按下Ctrl+F快捷键,将在编辑页的顶部弹出类内快速搜索栏,可以快速定位类内的某个单词,支持联想查找 输入p…
参考资料:http://blog.csdn.net/fakine/article/details/51241202 最近更新了Android studio 之后,出现了Error:java.lang.UnsupportedClassVersionError:com/android/dx/command/Main : Unsupported major.minor version 52.0 异常, 这是因为 compileSdKVersion 和 buildToosVersion 版本对不上导致的…
当我们添加某些依赖库(Okhttp.Retrofit)时, Android studio 会报如下错误: Error:A problem occurred configuring project ':app'.> Could not resolve all dependencies for configuration ':app:_iranDebugCompile'.   > Could not resolve com.facebook.network.connectionclass:conn…
————————— Error launching Android Studio ————————— No JVM installation found. Please install a 64-bit JDK. If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.…
使用过程中发现了一些与Eclipse不同的地方,在这里提供一些设置方法   1. Backspace会将开头的空格和换行符一并删除,如果要禁用 Settings -> Editor -> General -> Smart Keys -> Backspace -> Unindent: 可 以设为Disabled   2. switch/case中的case会被自动缩进一级 Settings -> Editor -> Code Style -> Java -&g…
前言 添加引用Module项目 设置Module项目的Libs的Jar在主项目里使用 1.在项目里添加libs包,并且加入jar 2.设置这个module项目的build.gradle dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constrai…
豆绿色的RGB值:#C7EDCC 1.打开Android Studio——>Ctrl+Alt+s 或者 File——>Settings 2.在弹窗中选中“Colors&Fonts”——> 点击Save as,自定义一个主题…
1. Android Studio 主题的设置: 设置Android Studio 自带的主题 设置第三方主题 2. Android Studio 字体的设置 设置左面包名的字体大小 设置右面代码编辑界面字体大小 1.1 设置Android Studio 自带的主题及包名字体大小:  1.2 导入第三方主题: http://www.ideacolorthemes.org/themes/ 从这里下载第三方的主题,然后执行: File——>Import Settings——>下载jar包所在位置…
转自:http://blog.csdn.net/qq_15807167/article/details/51984920 参考:http://stackoverflow.com/questions/35202541/this-version-of-android-studio-is-incompatible-with-the-gradle-version-used-try step1: 禁用Instant Run,在Settings/Preferneces > Build, Execution,…
http://devnet.jetbrains.com/message/5521484#5521484 Configure -> Project defaults -> Project structure and added the jdk 如果无法回到开始界面,在help->show logFIles..  ,将日志文件删除,然后重启,就能重新进入开始界面…
本文的解决方法主要参考以下文章: https://blog.csdn.net/sinat_15417921/article/details/51907728 Android 开发总是会遇到各种不知道怎么回事的错误,最后往往也会不知道怎么调来调去就调好了,各种的神奇,各种的不理解.前几天在网上下载了一个Android 工程,用Studio打开好好的,后来给gradle还是SDK做了一下升级,再一次打开工程进行编译就开始报错了,错误如下: 错误蹦出来的太过于诡异,实在是有些发懵. 在网上查到了一个解…
1.只需要在设置中选中show method separators 即可.…
1.打开设置 2.勾选编码格式,在这里可以设置分别设置IDE.Project.File等级别的编码格式. 3.查看.修改各个文件的编码 4.当右击编辑界面时,可以直接设置当前文件的编码…
1.原代码提示快捷键为:Ctrl+空格,与Windows输入法冲突,所以将代码提示快捷键设置为:Ctrl+反斜杠.…
当我导入Gradle项目初试Java spring的时候,遇到下面报错: Gradle complete project refresh failed Error:Could not determine java version . 参考这篇 http://www.ddiinnxx.com/solving-not-determine-java-version-9-0-1-gradle-intellij-macosx/ 进行的设置 不过这篇是macosx的,但是步骤大同小异 第一步:检查JDK版本…
在ionic2开发中,用android studio 打包apk的时候出现DELETE_FAILED_INTERNAL_ERROR Error while Installing APK. 我的android studio 版本是 解决方案: Android Studio > Settings> Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run 解决问题参考于次链接: http://st…
1.android studio 导入项目时Error:SSL peer shut down incorrectly 今天导入一个项目到studio,显示在下载一个一个1.1.0-rc4的东西. 过了一会报了这个错,网上搜了下说是 Android SDK Manager下载SDK报错:Download interrupted: SSL peer shut down incorrectly 还需要设置一些文件什么的,看着挺麻烦的 然后我到这里看了下 对照着自己能正常运行的项目改了一下就好了,也可以…
. 一. 编译错误 1. "AndroidManifest.xml file not found" 错误 (1) 报错信息 报错信息 : -- Message Make : Information:Compilation completed with 1 error and 0 warnings in 2 sec Information:1 error Information:0 warnings Error:Android Source Generator: [MidiScope]…
本文主要参考blog:http://blog.csdn.net/jkan2001/article/details/54316375 下面是本人结合blog生成so包过程中遇到一些问题和解决方法 (1)新建一个android项目,增加native方法 package update.smartapp.com.myso; /** * Created by qinpeizhou on 17-5-12. */ public class JNIUtils { static { System.loadLibr…
1.JDK安装 a.准备 由于AS(Android Studio)不支持openjdk,需要另行下载oracle jdk,同时官网指出对于64位linux系统,为了能在其上运行32位程序,需要安装一些软件,执行以下命令 ubuntu 13.10及以上系统 #sudo dpkg --add-architecture i386 #sudo apt-get update #sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386…
Configuring Android Studio: IDE & VM Options, JDK, etc You should not edit any files in the IDE installation directory. Instead, you can customize the attributes by creating your own .properties or .vmoptions files in the following directories. (This…
In Android Studio, if you wish to include any library to your application. You could just simply add a following line of dependency in module's build.gradle file. 1 2 3 dependencies {     compile 'com.inthecheesefactory.thecheeselibrary:fb-like:0.9.3…
转:http://blog.surecase.eu/using-greendao-with-android-studio-ide/ In this tutorial we will show you step by step how we have created sample application that presents our own Android Studio-GreenDao communication module. We tried to focus mainly on th…
转摘自:http://blog.csdn.net/zhanghefu/article/details/9286123 第一章   andriod studio 安装与环境搭建 一.Android Studio简介 Android Studio是Google新发布的Android应用程序开发环境,Android Studio是基于IntelliJ IDEA开发而成的.在Android Studio开发环境中,Android开发者可以非常方便地调试Android应用程序,Android Studio…
前言 本博客写于2017/08/11, 博主非专业搞安卓开发, 只是工作的需要倒腾了下Android NDK相关的开发, 博文中有什么不正确.不严格的地方欢迎指正哈    本文后续也许还会有删改, 就这样. 一.工具.开发环境 博主的操作系统是Windows 10 x64位,虽然感觉Windows 7更适合用来搞开发, 但是用着Win 10也是挺好使的(没必要在操作系统上有很大纠结,Win 10和Win 7都可以). 1.搭建并测试JAVA开发环境 首先要搭建Java开发环境,Java开发环境的…
缘由 首先说明一下为什么会有这篇文章.前段时间,插件化以及热修复的技术非常热,Nuwa热修复的工具NuwaGradle,携程动态载入技术DynamicAPK,还有希望做最轻巧的插件化框架的Small.这三个App有一个共同的地方就是大量的使用了Gradle这个强大的构建工具,除了携程的框架外,另外两个都公布了独立的Gradle插件提供自己主动化构建插件,或者生成热修复的补丁.所以学习一下Gradle插件的编写还是一件十分有意义的事. 插件类型 Gradle的插件一般有这么几种: 一种是直接在项目…