[英]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.