I am using the Android studio1.3 version, a few days before debugging through the project, now compile errors. The error message is as follows
1 is An Android Library. 2 Project app:apk dependencies can only be jars. Com.android.support:appcompat-v7:aar:19.1. 0 is an Android Library.
And there is no upgrade version, it is very strange. After trying a lot of ways, I finally found a solution.
Modify the following code in the Gradle file to
1APK Project (': Mgimlibs')2APK filetree (include: ['*.jar'], dir:'Libs')3 4apk'com.android.support:appcompat-v7:19.+'5apk'com.google.protobuf:protobuf-java:2.6.1'6apk'de.greenrobot:eventbus:2.4.0'7apk'de.greenrobot:greendao:1.3.7'8apk'com.google.code.gson:gson:2.3.1'9apk'com.squareup.okhttp:okhttp:2.0.0'Tenapk'com.squareup.okhttp:okhttp-urlconnection:2.0.0' Oneapk'commons-io:commons-io:2.4'
Modified to:
1APK filetree (include: ['*.jar'], dir:'Libs')2 3Compile'com.google.protobuf:protobuf-java:2.6.1'4Compile'de.greenrobot:eventbus:2.4.0'5Compile'de.greenrobot:greendao:1.3.7'6Compile'com.google.code.gson:gson:2.3.1'7Compile'com.squareup.okhttp:okhttp:2.0.0'8Compile'com.squareup.okhttp:okhttp-urlconnection:2.0.0'9Compile'commons-io:commons-io:2.4'TenCompile'com.android.support:appcompat-v7:19.+' OneCompile Project (': Mgimlibs')
Then you can go through the editing.
Android compilation Error