草庐IT

CURRENT_PROJECT_VERSION

全部标签

android - 管道 : Minimum supported Gradle version is 4. 10.1。当前版本是 4.4

我已经更新了顶级build.gradle文件:来自classpath'com.android.tools.build:gradle:3.1.4'到classpath'com.android.tools.build:gradle:3.3.0'现在无法在Bitbucket-Pipelines上构建项目:错误是:FAILURE:Buildfailedwithanexception.*Where:Buildfile'/opt/atlassian/pipelines/agent/build/app/build.gradle'line:1*Whatwentwrong:Aproblemoccurre

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

java - 如何将 sourceCompatability 设置为 javaVersion.VERSION_1_8

我安装了jdk1.8.0_112,在build.gradle中写了下面的代码compileOptions{sourceCompatibilityJavaVersion.VERSION_1_8targetCompatibilityJavaVersion.VERSION_1_8}我收到这个错误Error:Jackisrequiredtosupportjava8languagefeatures.EitherenableJackorremovesourceCompatibilityJavaVersion.VERSION_1_8.谁能帮帮我? 最佳答案

安卓工作室 : 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 - 为什么我在 Android Studio 3.2.1 中得到 "All com.android.support libraries must use the exact same version specification"?

我已阅读文章Allcom.android.supportlibrariesmustusetheexactsameversionspecification但是我添加代码实现'com.google.android.gms:play-services-ads:17.0.0'后还是得到如下信息,为什么?信息所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本28.0.0、26.1.0。示例包括com.android.support:animated-vector-drawable:28.0.0和com.android.support:c

java - ReactNative,安卓运行报错: Could not determine java version from '11.0.1' . Windows 10

Java版本:11.0.1reactnative版本:0.57.5ReactNativeCLI版本:2.0.1Android设备已连接并获得访问权限,通过USB调试调试当我运行neact-nativerunandroid时,出现以下错误:正在启动JS服务器...在设备上构建和安装应用程序(cdandroid&&gradlew.batinstallDebug)...失败:构建失败,出现异常。出了什么问题:无法从“11.0.1”确定Java版本。尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完

机器人 : 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

android - java.lang.SecurityException : Neither user 10032 nor current process has android. 权限.MODIFY_PHONE_STATE

我正在开发一项在启动设备时自动PIN/PUK的服务。服务在引导时启动。我正在使用带有自反方法的ITelephony。我的手机是lollipop5.1.1,它是一个root的nexus5。我的list有AndroidStudio说“权限只授予系统应用”我正在使用这个代码fragment:TelephonyManagertm=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);intstate=tm.getSimState();if(state==TelephonyManager.SIM_STATE_PIN_