Tag Archives: proguard

915 views

Proguard Android Studio

http://developer.android.com/tools/help/proguard.html If make signed apk, open file build.gradle in the module folder. Set minifyEnabled to true http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-ProGuard buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile(’proguard-android.txt’), ‘proguard-rules.pro’ } } Check if the file exists in the module folder proguard-rules.pro c:\Users\meFolder\AndroidStudioProjects\MyProject\myModule\proguard-rules.pro Android … Continue reading

Posted in Android Studio | Tagged | Comments Off on Proguard Android Studio
1,690 views

Warning: com.google.android.gms.common.SupportErrorDialogFragment: can’t find referenced method

Try add to your project, next project in workspace appcompat_v7

Posted in Bugs, warnings, errors | Tagged , | Comments Off on Warning: com.google.android.gms.common.SupportErrorDialogFragment: can’t find referenced method
1,404 views

proguard.ParseException: Expecting class member name before ‘@’

Possible problem call a function in onClick procedure by string from string.xml: // function in Activity.java public void myClickHandler(View view){   }   // right implementation at onClick in activity.xml <Button android:onClick="myClickHandler" />   // bad impementaiton <Button android:onClick="@string/myClickHandler" />

Posted in Android Examples Code, Bugs, warnings, errors | Tagged , | Comments Off on proguard.ParseException: Expecting class member name before ‘@’
5,577 views

proguard.ParseException: Expecting class member name before ‘@’

Issue: proguard.ParseException: Expecting class member name before ‘@’ in line of file ‘c:\project\bin\proguard.txt‘ *.xml file contain this source code in Button tag android:onClick android:onClick="@string/clickHandler" Workaround: Add name of function to onClick android:onClick="myClickHandler" Handler in MyActivity.java public void myClickHandler(View view) { … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged , | Comments Off on proguard.ParseException: Expecting class member name before ‘@’
3,937 views

ADT 20 Eclipse New Activity wizard cannot be complete due to support library

Issue: When using New Activity wizard, ADT 20 asked to install Android Support library version 8 even though version 9 has been installed. Pressing “Install/Update” then ADT popup a window downloading Support library, when finished nothing happen. Pressing “Check Again” … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged , | Comments Off on ADT 20 Eclipse New Activity wizard cannot be complete due to support library
2,626 views

Warning: android.support.v4 ProGuard

Problem: Warning: android.support.v4.view.accessibility.AccessibilityRecordCompatIcs: can’t find referenced class android.view.accessibility.AccessibilityRecord Warning: android.support.v4.widget.EdgeEffectCompatIcs: can’t find referenced class android.widget.EdgeEffect Solution: Try to insert into proguard.cfg or into ${sdk.dir}/tools/proguard/proguard-android.txt (by version Android SDK) this line -dontwarn android.support.**

Posted in Bugs, warnings, errors | Tagged , | Comments Off on Warning: android.support.v4 ProGuard
9,015 views

Invalid proguard configuration file path Android Eclipse Error

Invalid proguard configuration file path C:\documents\my_android_projects\my_project\proguard.cfg does not exist or is not a regular file Solution: Check if exist file proguard.cfg in your project on the path C:\docum……… If not exist, copy a file proguard.cfg from other project or create … Continue reading

Posted in Bugs, warnings, errors, Eclipse | Tagged , , | Comments Off on Invalid proguard configuration file path Android Eclipse Error