简体   繁体   English

我无法运行我的 Android Studio 程序

[英]I cant run my Android studio program

how to solve the problem in android studio is that in the basic (helloword) program i am facing a problem is that in setcontentview line the R.layout in "R" is showing red mark.如何解决android studio中的问题是在基本(helloword)程序中我面临的问题是在setcontentview行中“R”中的R.layout显示红色标记。 can you tell me how to solve this problem.你能告诉我如何解决这个问题吗? Another problem is that my sdk location is not fecthing it is showing that "sdk location should not contain whitespace, as this can cause problem with the NDK tools".另一个问题是我的 sdk 位置没有显示“sdk 位置不应包含空格,因为这可能会导致 NDK 工具出现问题”。

The problem: android sdk location should not contain whitespace as this can cause problems with the ndk tools问题:android sdk 位置不应包含空格,因为这可能会导致 ndk 工具出现问题

I have already solved this problem.我已经解决了这个问题。 This is because in your path has white space.这是因为在您的路径中有空格。 For example, I had this path "C:\\Program Files(x86)\\Android".例如,我有这个路径“C:\\Program Files(x86)\\Android”。 there is a space in "Program Files(x86)". “程序文件(x86)”中有一个空格。 So, I moved the whole folder of Android to this path with no white space "C:\\Android".因此,我将 Android 的整个文件夹移动到此路径,没有空格“C:\\Android”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法在 android 工作室模拟器中运行我的应用程序构建 - I cant run my app build in android studio emulator 当我尝试在Android Studio上运行我的Android程序时出现NullPointerException - NullPointerException when I try to run my Android Program on Android Studio 运行我的程序时,Android Studio无法找到设备 - Android studio cannot find device when I run my program 我无法通过在 CLI 上运行 android 命令来打开我的 android studio AVD - i cant open my android studio AVD with run android command on CLI 重新启动电脑后,我的Android Studio项目无法运行 - My Android studio project cant run after restart my pc 当我在android studio中运行程序时出现错误“不幸的是,我的应用程序已停止” - There is an error “unfortunately, my application has stopped” when i run my program in android studio Android Studio无法运行minsdk - Android Studio cant run minsdk 我无法在 android 工作室上的 android 应用程序上更改文本 - I cant get text to change on my android application on android studio 由于android studio和adb.exe的更新,我无法运行我的程序 - I am not able to run my program due to update of android studio and adb.exe 我无法获取对话框复选框以在android studio中工作 - I cant get my dialog check box to work in android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM