[英]Importing library in Android Studio
I have little experience with importing libraries. 我几乎没有导入库的经验。 I am using Android Studio, and am trying to use parse.com's library with no luck.
我正在使用Android Studio,并且尝试使用parse.com的库没有任何运气。 I followed these instructions , and tried a few other things when that didn't work.
我遵循了这些说明 ,并在无法解决问题时尝试了其他一些操作。 Please help me out.
请帮帮我。 Let me know if you need any more information.
让我知道您是否需要更多信息。 Thanks for your time.
谢谢你的时间。
This is my MainActivity where I would initialize my Parse client key: 这是我的MainActivity,用于初始化我的Parse客户端密钥:
Project Structure showing I have imported the libraries: 显示我已导入库的项目结构:
UPDATE Gradle: UPDATE Gradle:
UPDATE: When I try to Build, I get this error:
Gradle: error: package com.parse does not exist
When I try cleaning through command prompt 更新:当我尝试生成时,出现此错误:
Gradle: error: package com.parse does not exist
当我尝试通过命令提示符进行清理时
To add to the answer of @ThePoloDoc and for your update Command Prompt image, you need to do the following to clear that error: 要添加到@ThePoloDoc的答案以及更新的命令提示符图像,您需要执行以下操作以清除该错误:
C:\\PATH_TO_JDK\\bin
C:\\PATH_TO_JDK\\bin
的Java安装文件夹 Replace the PATH_TO_JDK
with the installation of your java directory Try opening the command prompt and you'll see the error gone. 用Java目录的安装替换
PATH_TO_JDK
尝试打开命令提示符,您将看到错误消失了。
UPDATE: I have got a doubt in your question. 更新:我对你的问题有疑问。 Why do you manually compile gradle?
为什么要手动编译gradle? I use Android Studio.
我使用Android Studio。 But I always click the
Sync Project with Gradle Files
button on the top. 但是我总是单击顶部的
Sync Project with Gradle Files
按钮。 It does everything for me 它为我做一切
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.