Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Publish an Android App Publishing on Google Play Building a Release-Ready APK

Can't upload Ribbit app onto store..something wrong with APK

It says I have 70 warning and 1 error

Information:Gradle tasks [:app:assembleRelease] :app:preBuild UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkReleaseManifest :app:preDebugBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72211Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42211Library UP-TO-DATE :app:prepareReleaseDependencies :app:compileReleaseAidl :app:compileReleaseRenderscript :app:generateReleaseBuildConfig :app:generateReleaseAssets UP-TO-DATE :app:mergeReleaseAssets :app:generateReleaseResValues UP-TO-DATE :app:generateReleaseResources :app:mergeReleaseResources AAPT out(549940708) : No Delegate set : lost message:Crunching C:\Users\Kevin\AndroidStudioProjects\Ribbit\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.1.1\res\drawable-hdpi-v4\abc_text_cursor_mtrl_alpha.9.png AAPT out(2045207433) : No Delegate set : lost message:Done AAPT out(549940708) : No Delegate set : lost message:Crunching C:\Users\Kevin\AndroidStudioProjects\Ribbit\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.1.1\res\drawable-hdpi-v4\abc_ic_voice_search_api_mtrl_alpha.png AAPT out(2045207433) : No Delegate set : lost message:Done AAPT out(549940708) : No Delegate set : lost message:Crunching C:\Users\Kevin\AndroidStudioProjects\Ribbit\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.1.1\res\drawable-xxhdpi-v4\abc_switch_track_mtrl_alpha.9.png AAPT out(1247341145) : No Delegate set : lost message:Done AAPT out(549940708) : No Delegate set : lost message:Crunching C:\Users\Kevin\AndroidStudioProjects\Ribbit\app\src\main\res\drawable\ic_action_send_now.png AAPT out(549940708) : No Delegate set : lost message:Crunching single PNG file: C:\Users\Kevin\AndroidStudioProjects\Ribbit\app\src\main\res\drawable\ic_action_send_now.png AAPT out(549940708) : No Delegate set : lost message: Output file: C:\Users\Kevin\AndroidStudioProjects\Ribbit\app\build\intermediates\res\release\drawable\ic_action_send_now.png AAPT out(549940708) : No Delegate set : lost message:Done AAPT err(2045207433): libpng error: Not a PNG file AAPT err(2045207433): libpng error: Not a PNG file AAPT err(549940708): libpng error: Not a PNG file AAPT err(1247341145): libpng error: Not a PNG file :app:processReleaseManifest :app:processReleaseResources :app:generateReleaseSources :app:processReleaseJavaRes UP-TO-DATE :app:compileReleaseJava Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :app:compileReleaseNdk UP-TO-DATE :app:compileReleaseSources :app:lintVitalRelease :app:proguardRelease Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find superclass or interface com.squareup.okhttp.RequestBody Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Call Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Response Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.ResponseBody Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Response Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Response Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Call Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.ResponseBody Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Call Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Response Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Call Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Response Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers$Builder Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Request Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Response Warning:com.parse.ParseOkHttpClient$1: can't find referenced class com.squareup.okhttp.Call Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class com.squareup.okhttp.RequestBody Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class com.squareup.okhttp.MediaType Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class okio.BufferedSink Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class com.squareup.okhttp.RequestBody Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class com.squareup.okhttp.MediaType Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class okio.BufferedSink Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class com.squareup.okhttp.MediaType Warning:com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find referenced class okio.BufferedSink Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Call Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Call Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Response Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.ResponseBody Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache Warning:there were 115 unresolved references to classes or interfaces. You may need to add missing library jars or update their versions. If your code works fine without the missing classes, you can suppress the warnings with '-dontwarn' options. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass) :app:proguardRelease FAILED Error:Execution failed for task ':app:proguardRelease'.

java.io.IOException: Please correct the above warnings first. Information:BUILD FAILED Information:Total time: 21.188 secs Information:1 error Information:70 warnings Information:See complete output in console

Ben Jakuben Harry James

Harry James
Harry James
14,780 Points

Hey Kevin!

Could you provide your build.gradle file for the app module here and I'll take a look? :)

1 Answer

Hello,

It looks like proGuard is having trouble finding with dealing with okhttp. You can either disable proGuard(set minifiedEnabled to false) or you can change your proguard rules. According to this stackoverflow post, you need to add the rules:

-keepattributes *Annotation*
-keepattributes Signature
-dontwarn com.squareup.**
-keep class com.squareup.** { *; }

I have not tried this myself so please let us know if this helps at all or if you need more assistance and we can try to help you further. If you still need assistance, please provide your updateded error messages and any changed files.