简体   繁体   English

更新后使用Android Studio创建新项目的问题

[英]Issue with creating a new project with Android Studio after an update

I'm here to write about an issue that I've tried to fix for 3 weeks. 我在这里写的一个问题,我已经尝试修复了三个星期。

I think I updated a tool in the SDK within Android Studio (not sure which one).After this, I saw a lot of different issues that caused all my projects to stop working. 我想我在Android Studio的SDK中更新了一个工具(不确定是哪个),此后,我看到很多不同的问题导致我的所有项目停止工作。 I uninstalled it and deleted all my data of installations SDK NDK and reinstalled it, but I see the same error. 我卸载了它并删除了我所有的安装SDK NDK数据,然后重新安装了它,但是我看到了相同的错误。

When I create a new Android Studio project I get these issues: 当我创建一个新的Android Studio项目时,出现以下问题:

  1. Access Deniel : I followed all instructions which results in the second issue. Access Deniel :我按照所有说明进行操作,导致出现第二个问题。

  2. you should use version Kotlin 1.2.51 or higher : I don't use Kotlin in my project and the version of Gradle is 3.1.0, which was working correctly before. you should use version Kotlin 1.2.51 or higher :我的项目中未使用Kotlin,Gradle的版本为3.1.0,该版本之前可以正常运行。

  3. Following the instructions, I updated the version of Kotlin in my project to 1.2.51, I received a lot of issues: 按照说明,我将项目中的Kotlin版本更新为1.2.51,我收到了很多问题:

      Android resource compilation failed Output: C:\\Users\\safin\\Desktop\\Project\\myproject 02-05- 2018\\myproject\\myproject\\myproject\\app\\build\\intermediates\\incremental\\mergeDebugResources\\merged.dir\\values\\values.xml:977: error: unescaped apostrophe in string "Safin click, it is a oneself.\\n\\n All have made and click.\\n\\n After days.\\n Thank you safineas.". C:\\Users\\safin\\Desktop\\Project\\myproject 02-05-2018\\myprojectr\\myproject\\myproject\\app\\build\\intermediates \\incremental\\mergeDebugResources\\merged.dir\\values\\values.xml:963: error: not a valid string. Command: C:\\Users\\safin\\.gradle\\caches\\transforms-1\\files-1.1\\aapt2-3.2.0- 4818971-windows.jar\\016347ebf5a2e9c410c8e5c96l7d7b16\\aapt2-3.2.0-4818971-windows\\aapt2.exe compile --legacy \\ -o \\ C:\\Users\\safin\\Desktop\\Project\\myproject 02-05-2018\\myproject\\myproject\\myproject\\app\\build\\intermediates\\res\\merged\\debug \\ C:\\Users\\safin\\Desktop\\Project\\myproject 02-05-2018\\myproject\\myproject\\myproject\\app\\build\\intermediates\\incremental\\mergeDebugResources\\merged.dir\\values\\values.xml Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0 

See attached screenshots below: 请参见下面的屏幕截图:

在此处输入图片说明

在此处输入图片说明

I don't get your whole problem but in that case - error: unescaped apostrophe in string , the string you provided SHOULD BE MODIFIED. 我没有解决您的全部问题,但是在那种情况下- error: unescaped apostrophe in string您提供的字符串应该被修改。 You must add backslash before the apostrophe like this- 您必须在这样的撇号之前添加反斜杠-

\"Safin click, it is a oneself.\n\n All have made and click.\n\n After days.\n Thank you safineas.\"

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM