2015-10-16 14 views
13

मैं निम्न त्रुटि एक रिलीज apkप्रो गार्ड त्रुटि इमारत रिहाई apk

:app:compileReleaseNdk UP-TO-DATE 
:app:compileReleaseSources 
:app:lintVitalRelease 
:app:proguardRelease 
Warning: android.support.v4.app.NotificationCompat$NotificationCompatImplBase: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification 
Warning: android.support.v4.app.NotificationCompat$NotificationCompatImplGingerbread: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification 
Warning: android.support.v4.app.NotificationCompatGingerbread: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification 
Warning: there were 3 unresolved references to library class members. 
     You probably need to update the library versions. 
     (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember) 
:app:proguardRelease FAILED 

का निर्माण करने के build.gradle मैं इस राशि में की कोशिश कर रहा हो रही है:

निर्भरता { संकलन "com.android .support: समर्थन-v4: 23.0.0 " }

और अगर मैं यह "com.android.support:support-v13:23.0.0"

करने के लिए बदल अब भी वही त्रुटि मिलती है जब त्रुटि संदेश यह कहता है: "आपको शायद पुस्तकालय संस्करणों को अद्यतन करने की आवश्यकता है।" यह किस लाइब्रेरी का जिक्र कर रहा है और मैं इसे कैसे अपडेट करूं?

प्रलेखन त्रुटि में संदर्भित का कहना है: "If you're developing for Android and ProGuard complains that it can't find a method that is only available in a recent version of the Android run-time, you should change the build target in your project.properties file or build.gradle file to that recent version. You can still specify a different minSdkVersion and a different targetSdkVersion in your AndroidManifest.xml file."

यहाँ के रूप में वहाँ है अपने एपीआई के रूप में 23. तो मैं कैसे इस समस्या को ठीक कर सकते हैं मेरी build.gradle, के रूप में हाल ही में जो है?

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.1" 

    defaultConfig { 
     applicationId "com.cequint.ecid" 
     minSdkVersion 23 
     compileSdkVersion 23 
    } 
+0

आप 'com.android.support को अद्यतन करने की कोशिश की थी: समर्थन-v4: 23.1.0'? –

+0

com.android.support:support-v4:23.1.0 – Gruntcakes

+1

को अपडेट करने के बाद यह वही त्रुटि संदेश मैंने इसे प्रो guard.cfg में जोड़ा और यह काम किया: -dontwarn android.support.v4। ** – Gruntcakes

उत्तर

11

मैं समर्थक guard.cfg को यह जोड़ा गया है और यह काम किया:

-dontwarn android.support.v4.** 
+1

क्या आप वास्तव में अधिसूचना कॉम्पेट और इसके निर्माता का उपयोग कर रहे हैं? मैंने इस फ़ाइल को जोड़ा, लेकिन अब – Nilzor

+1

के बजाय रनटाइम अपवाद प्राप्त हो रहा है हां, मैं अधिसूचना कॉम्पेट का उपयोग कर रहा हूं। क्या आपका मतलब है कि आपने अधिसूचना कॉम्पेट का उपयोग करना शुरू कर दिया है और फिर ऐसा करने पर अपवाद प्राप्त करना शुरू कर दिया है? यदि ऐसा है तो आप अपनी ग्रेडल फ़ाइल – Gruntcakes

+0

में निर्भरता खो सकते हैं, यह एक असंबंधित परिवर्तन था जिसके कारण यह हुआ। मेरी परवाह न करें। – Nilzor

संबंधित मुद्दे