草庐IT

CURRENT_PROJECT_VERSION

全部标签

android - Gradle 同步失败 : Failed to update Android plugin to version '2.0.0'

我最近将AndroidStudio更新到了2.0。我正在参加兼职类(class),我必须从事所提供的项目。当gradle尝试构建项目时,会弹出一个对话框,要求我更新androidstudiogradle插件。当我点击更新时,出现标题中的错误。我的gradle文件如下:渐变包装器:#WedSep3011:56:02PDT2015distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/distsdistributionUr

安卓工作室 : Gradle sync failed: Project :app declares a dependency

我在AndroidStudio2.3中工作,我想使用我在github(https://github.com/henrychuangtw/Android-ChatHead)上找到的库,但没有Jar文件。在settings.gradle中,我声明了库所在的目录,如下所示:include':app'include':Android-ChatHead'project(':Android-ChatHead').projectDir=newFile('/Users/lorand/AndroidStudioProjects/Doritest/android_chatHeads')而且我还将库添加到b

java - 让eclipse调试我的android PROJECT

我正在使用Eclipse编写Android应用程序。当我单击左侧TreeView中的项目然后单击调试时,IDE会构建一个APK并按预期安装在模拟器/设备中。但是,如果我在编辑文件时忘记在尝试调试之前先单击该项目,则IDE会认为我想调试该特定Java文件。这不是我想要做的,我希望它像往常一样在设备上构建和模拟/安装。有什么方法可以改变Eclipse中的这种行为吗? 最佳答案 在Eclipse中,您可以在工作区首选项/运行调试/启动中设置始终启动之前启动的应用程序(直到您明确选择其他应用程序:那么它将是最后一个启动的应用程序)。这样,无

android - NDK/JNI : identifying current thread

在JNI本地方法中,有没有办法在不调用Java的情况下知道当前线程的ID?线程本地存储也可以。编辑:pthread.h存在于NDK包含文件夹中...有谁知道Java线程是否对应于NDK实现中的POSIX线程? 最佳答案 您对哪个ID感兴趣?Dalvik线程转储包括以下内容:"main"prio=5tid=1TIMED_WAIT|group="main"sCount=1dsCount=0obj=0x40017730self=0x12798|sysTid=3167nice=0sched=0/0cgrp=defaulthandle=-21

安卓工作室 : How to create quick clones or copies of current project

AndroidStudio6月27日构建在Ubuntu13上我无法理解如何在AndroidStudio中克隆项目。我想获取Project01并将其复制到新的Project02并进行更新/测试/稳定并将其复制到Project03并继续。我正在寻找选项,例如在Project01中我只是“另存为”Project02,然后打开Project02并继续。我已阅读有关模板的信息并构建了模板,但在使用快速启动“新项目”选项时,我无法找到可以应用模板的位置。或者如何将模板应用于我刚刚创建的新项目。 最佳答案 您可以在AndroidStudio之外复

android - Gradle 依赖 : What's the difference between compile project and compile name?

示例代码dependencies{compileproject(':aProject')compilename:'somefile'compilefiles('libs/something_local.jar')compile'com.google.code.gson:gson:2.3.1'}我的问题是这里的compileproject和compilename有什么区别?编译名称是否与编译文件相同?什么时候使用compile直接如第5行代码所示compile在这里做什么?它是在括号/单引号内编译文件吗?我可以使用“build”之类的东西吗? 最佳答案

IDEA出现Unsupported class file major version 64及SSL peer shut down incorrectly问题

IDEA出现Unsupportedclassfilemajorversion64及SSLpeershutdownincorrectly问题记录简介一、Unsupportedclassfilemajorversion64问题1.Idea问题图片2.问题代详情3.问题原因及解决办法3.1问题原因3.2解决办法二、SSLpeershutdownincorrectly解决方案结尾简介第一次使用IDEA搭建SpringBoot项目,遇到了Unsupportedclassfilemajorversion64及SSLpeershutdownincorrectly的问题,以下是我通过查询和尝试找到的一些解决办

android - 找不到 com.google.android.gms :strict-version-matcher-plugin:1. 1.0

无法解析配置“类路径”的所有文件。找不到com.google.android.gms:strict-version-matcher-plugin:1.1.0。在以下位置搜索:https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pomhttps://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.

eslint提示 xxx should be listed in the project's dependencies

有时候手动安装了一个npm包A,npm包A里面包含了npm包B,这时候如果importxxxfrom'npm包B';eslint会报错,提示npm包B不在package.json里面 解决方法:在eslintrc.js增加配置module.exports={rules:{'import/no-extraneous-dependencies':[0,{devDependencies:true,peerDependencies:true//optionalDependencies:true,//bundledDependencies:true}]}};

安卓 map :Failed to find style 'mapViewStyle' in current theme

我正在尝试在我的应用程序中使用map,但出现此错误,在当前主题中找不到样式“mapViewStyle”我已正确生成key,并已尝试在其他地方为同一问题提供的所有解决方案。1.mytargetapiandtheonementionedinthemanifestfilearethesame.2.Thereisnoimport.Rinmyproject3.Ihavecleanedmyproject.4.Uses-libraryelementisachildoftheapplication.这是我的xml文件这是我对应的java文件包com.epidemicator.prototype;imp