[英]No manifest attribute Android Studio
I imported the volley library as .jar file and I added it as a library (right click >add as library ). 我将凌空库作为.jar文件导入,并将其添加为库(右键单击>添加为库)。
When I try to run the app I get the Error 当我尝试运行应用程序时出现错误
no main manifest attribute, in /Users/ervincosic/AndroidStudioProjects/AirportCab247/app/libs/library-1.0.19.jar
It doesn't seem to be connected with Volley. 它似乎与Volley无关。 Clean project if that doesn't work try to remove it and compile again.
如果无法清除项目,请尝试将其删除并重新编译。 To do that you can simply add dependency to your
build.gradle
file. 为此,您可以简单地将依赖项添加到
build.gradle
文件中。 You should have something like: 您应该具有以下内容:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion ...
....
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.1'
...
compile 'com.mcxiaoke.volley:library:1.+'
}
If you want to read about other methods of importing VOLLELY, click here . 如果您想了解其他导入VOLLELY的方法,请单击此处 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.