0
确定我知道这个问题已经回答了很多次,我见过很多岗位与所有种类的建议,但是不管我怎样搭配的APK不会编译解析Android SDK中proguard的编译错误
这是我proguard-rules.pro文件
# Keep source file names, line numbers, and Parse class/method names for easier debugging
-keepattributes SourceFile,LineNumberTable
-keepnames class com.parse.** { *; }
-keep class com.parse.** { *; }
# Required for Parse
-keepattributes *Annotation*
-keepattributes Signature
-dontwarn com.squareup.**
-dontwarn okio.**
-dontwarn com.parse.**
和我gradle这个文件
apply plugin: 'com.android.application'
android {
signingConfigs {
config {
keyAlias 'xxxxxx'
keyPassword 'xxxxxxx'
storeFile file('/xxx/xxx/xxx/xxx/xxx/xxx.jks')
storePassword 'xxxxxxx'
}
}
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "xx.xxx.xxxx"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0.0_beta1"
renderscriptTargetApi 20
renderscriptSupportModeEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile project(':viewpagerindicator')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-analytics:8.4.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.bignerdranch.android:recyclerview-multiselect:+'
debugCompile 'com.parse:parseinterceptors:0.0.1'
compile 'com.parse:parsefacebookutils-v4-android:[email protected]'
compile('com.facebook.android:facebook-android-sdk:4.8.0') {
exclude module: 'bolts-android'
}
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:palette-v7:23.1.1'
compile 'org.apmem.tools:layouts:[email protected]'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.google.code.gson:gson:2.4'
compile 'jp.wasabeef:picasso-transformations:1.3.1'
}
每次我试图改变发布在Android Studio中的变体建立一个版本的apk
,它给我埃罗RS未fouding关于解析类的东西,像
Error:(4, 17) error: cannot find symbol class ParseClassName
Error:(5, 17) error: cannot find symbol class ParseGeoPoint
等 我不知道还有什么尝试,任何想法?感谢您的帮助
哪里是解析的主要依赖?即'com.parse:parse-android:1.10.3' –
根据文档,在这个类中没有com.parse:parsefacebookutils-v4-android:[email protected]他们有解析SDK嵌入 – goseta