草庐IT

project-reference

全部标签

android - 错误 :Execution failed for task ':app:dexDebug' error in my project while I added new dependency

我没有在我的项目中添加任何库/jar(在libs中)只有这个依赖项。我的build.gradle文件。android{compileSdkVersion23buildToolsVersion"23.0.1"defaultConfig{applicationId"com.android.example23"minSdkVersion14targetSdkVersion23versionCode1versionName"1.0"}buildTypes{release{minifyEnabledfalseproguardFilesgetDefaultProguardFile('proguar

安卓工作室 : how to undo "Link C++ project with gradle"

我右键单击我的NDK项目并选择“LinkC++projectwithgradle”。我在那里添加了Android.mk文件。“cpp”文件夹出现。到目前为止一切正常。现在我想撤消此操作并再次分配Android.mk路径,因为我之前选择了错误的路径。我该怎么做? 最佳答案 如果您查看模块的build.gradle文件,您会发现一个链接到您的native代码的条目,格式如下:externalNativeBuild{ndkBuild{path'../../../src/Android.mk'}}要么更改此处的路径,要么删除它,重新同步项目

java - 在 Eclipse 中,当我转到 File->New-Project 时没有 Android Project

我已经下载了AndroidSDK,设置了AVD并为Eclipse安装了必要的更新。我想我已经完成了所有操作,但是当我尝试单击文件->新建项目时,我没有看到Android项目。有一个Android文件夹,其中包含:Android应用程序项目、Android测试项目、Android示例项目等。我该怎么做? 最佳答案 I'veansweredthisquestionsbefore.基本上你可以手动添加选项,前提是你当然安装了AndroidSDK:Window>CustomizePerspective>MenuVisibility>Expa

安卓工作室 : build project error - Failed to complete Gradle execution

我是androidstudio的新手。我正在尝试在androidstudio中构建项目(makeproject),它向我展示了这个:FailedtocompleteGradleexecution.Cause:Unabletostartthedaemonprocess.Thisproblemmightbecausedbyincorrectconfigurationofthedaemon.Forexample,anunrecognizedjvmoptionisused.Pleaserefertotheuserguidechapteronthedaemonathttp://gradle.or

android - 从 Proguard 获取 "unresolved references"和 "can' t 找到父类(super class)警告

我已经将一些第三方源集成到我的android项目中,但在启用混淆器的情况下构建它时遇到了问题。构建失败:Warning:therewere123unresolvedreferencestoclassesorinterfaces.Youmayneedtoaddmissinglibraryjarsorupdatetheirversions.Ifyourcodeworksfinewithoutthemissingclasses,youcansuppressthewarningswith'-dontwarn'options.(http://proguard.sourceforge.net/ma

android - Unresolved reference : LinearLayoutManager/RecyclerView

我开始使用Kotlin构建一个电影数据库应用程序,这是基于我在网上找到的教程(详见thislink。在构建电影fragment文件时,我注意到一个“未解析的引用:LinearLayoutManager”和一个“未解析的引用:RecyclerView”“错误。我已经包含了下面的代码,除了那些错误之外,一切都像教程一样匹配:importandroid.os.Bundleimportandroid.support.v4.app.Fragmentimportandroid.support.v7.widget.LinearLayoutManagerimportandroid.support.v7

安卓开发 : Local SVN for Android Projects?

我正在尝试在Eclipse中为我的Android项目设置VCS。现在我已经在Eclipse上安装了SVN和Subclipse插件。我知道如何像谷歌代码项目url一样连接到远程SVN,但我不想那样,我想在我自己的计算机上设置本地SVN。我该怎么做? 最佳答案 您必须创建本地存储库,然后告诉subclipse它在哪里。svn存储库基本上是一个文件夹,具有文件和文件夹的结构。如果你使用像TortoiseSVN这样的svn客户端,你只需要创建一个文件夹,给它命名并打开它,右键单击该文件夹,然后在上下文菜单中转到TortoiseSVN->“在

android - 对 __android_log_print 的 undefined reference

此问题存在,但无法解决我的问题。我得到了对__android_log_print的undefinedreference,但我有包含header#include我的Android.mk文件有LOCAL_LDLIBS+=-L$(SYSROOT)/usr/lib-llogLOCAL_LDLIBS:=-landroid我也试过仅使用-llog,但无济于事。 最佳答案 在您的代码中,第二行覆盖第一行。如果你真的需要-android,使用LOCAL_LDLIB+=-landroid最有可能的是,-L$(SYSROOT)/usr/lib部分应该被

java - 异常 : Attempt to invoke virtual method 'int com.google.android.gms.location.LocationRequest.b()' on a null object reference

我已经阅读了一些相关主题,但未能解决我的问题。由于我处于学习阶段,我正在尝试实现谷歌的定位服务教程。问题是,我没有在代码中的任何地方使用“LocationRequest.b()”,但是当我按下“开始更新”按钮时出现以下错误。该应用程序随后崩溃。请让我知道我做错了什么。错误:Exception:Attempttoinvokevirtualmethod'intcom.google.android.gms.location.LocationRequest.b()'onanullobjectreference具体报错代码位置:protectedvoidstartLocationUpdates(

机器人 : how to start activity defined in library project

我正在开发一个使用androidVNCViewer作为库项目的android应用程序,但我无法从androidVNC启动Activity(Activity未找到异常)。另外,我如何bundle一个库项目并将其作为一个apk使用?更新我正在使用以下Intent调用:Intentcall=newIntent("android.androidVNC.androidVNC.LAUNCH");startActivity(call);更新2使用以下代码后,我想我可以开始Activity但得到this(java.lang.NoSuchFieldError:android.androidVNC.R$i