Thursday, September 25, 2014

android Warning: xxx can't find referenced field 'int xxx' in class xxx.R$id

1.error

[2014-09-25 14:59:44 - pkrssv4] ------------------------------
[2014-09-25 14:59:44 - pkrssv4] Android Launch!
[2014-09-25 14:59:44 - pkrssv4] adb is running normally.
[2014-09-25 14:59:44 - pkrssv4] Performing com.pkrss.MainActivity activity launch
[2014-09-25 15:03:19 - pkrssv4] Launching a new emulator with Virtual Device '320_480_19'
[2014-09-25 15:04:07 - pkrssv4] New emulator found: emulator-5554
[2014-09-25 15:04:07 - pkrssv4] Waiting for HOME ('android.process.acore') to be launched...
[2014-09-25 15:05:08 - pkrssv4] HOME is up on device 'emulator-5554'
[2014-09-25 15:05:08 - pkrssv4] Uploading pkrssv4.apk onto device 'emulator-5554'
[2014-09-25 15:05:20 - pkrssv4] Installing pkrssv4.apk...
[2014-09-25 15:06:21 - pkrssv4] Success!
[2014-09-25 15:06:21 - webview_google] Could not find webview_google.apk!
[2014-09-25 15:06:21 - pkrssv4] Starting activity com.pkrss.MainActivity on device emulator-5554
[2014-09-25 15:06:24 - pkrssv4] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.pkrss.v4/com.pkrss.MainActivity }
[2014-09-25 15:06:26 - pkrssv4] Attempting to connect debugger to 'com.pkrss.v4' on port 8616
[2014-09-25 15:24:24 - pkrssv4] Proguard returned with error code 1. See console
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int bottomLinearLayout' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_speak' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int imageLogo' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_back' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int topbar_imgbtn_next' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_refresh' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int topbar_imgbtn_edit' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_favorite' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int pB1' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity$9: can'
t find referenced field 'int topbar_imgbtn_back_parent' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity$9: can't find referenced field 'int topbar_imgbtn_next_parent' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.MainActivity: can'
t find referenced field 'int webview' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.MainActivity: can't find referenced field 'int topbar' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] Warning: com.pkrss.webview_core.MainActivity$2: can'
t find referenced field 'int topbar' in class com.pkrss.webview_core.R$id
[2014-09-25 15:24:24 - pkrssv4] You should check if you need to specify additional program jars.
[2014-09-25 15:24:24 - pkrssv4] Warning: there were 14 unresolved references to program class members.
[2014-09-25 15:24:24 - pkrssv4] Your input classes appear to be inconsistent.
[2014-09-25 15:24:24 - pkrssv4] You may need to recompile them and try again.
[2014-09-25 15:24:24 - pkrssv4] Alternatively, you may have to specify the option
[2014-09-25 15:24:24 - pkrssv4] '-dontskipnonpubliclibraryclassmembers'.
[2014-09-25 15:24:24 - pkrssv4] java.io.IOException: Please correct the above warnings first.
[2014-09-25 15:24:24 - pkrssv4] at proguard.Initializer.execute(Initializer.java:321)
[2014-09-25 15:24:24 - pkrssv4] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-09-25 15:24:24 - pkrssv4] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-09-25 15:24:24 - pkrssv4] at proguard.ProGuard.main(ProGuard.java:492)
[2014-09-25 15:25:00 - pkrssv4] Proguard returned with error code 1. See console
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int bottomLinearLayout' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_speak' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int imageLogo' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_back' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int topbar_imgbtn_next' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_refresh' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int topbar_imgbtn_edit' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can'
t find referenced field 'int topbar_imgbtn_favorite' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity: can't find referenced field 'int pB1' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity$9: can'
t find referenced field 'int topbar_imgbtn_back_parent' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.BaseActivity$9: can't find referenced field 'int topbar_imgbtn_next_parent' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.MainActivity: can'
t find referenced field 'int webview' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.MainActivity: can't find referenced field 'int topbar' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] Warning: com.pkrss.webview_core.MainActivity$2: can'
t find referenced field 'int topbar' in class com.pkrss.webview_core.R$id
[2014-09-25 15:25:00 - pkrssv4] You should check if you need to specify additional program jars.
[2014-09-25 15:25:00 - pkrssv4] Warning: there were 14 unresolved references to program class members.
[2014-09-25 15:25:00 - pkrssv4] Your input classes appear to be inconsistent.
[2014-09-25 15:25:00 - pkrssv4] You may need to recompile them and try again.
[2014-09-25 15:25:00 - pkrssv4] Alternatively, you may have to specify the option
[2014-09-25 15:25:00 - pkrssv4] '-dontskipnonpubliclibraryclassmembers'.
[2014-09-25 15:25:00 - pkrssv4] java.io.IOException: Please correct the above warnings first.
[2014-09-25 15:25:00 - pkrssv4] at proguard.Initializer.execute(Initializer.java:321)
[2014-09-25 15:25:00 - pkrssv4] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-09-25 15:25:00 - pkrssv4] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-09-25 15:25:00 - pkrssv4] at proguard.ProGuard.main(ProGuard.java:492)



2.fixed



because my project b refrence project a, and they have one same layout filename main_activity.xml, and project b project.property have “manifestmerger.enabled=true”,so i want to change the main_activity.xml of project a,and it ok now.



3.last



thanks your reading!

1 comment:

tike mik said...

When I first told my friends that I was planning an extended stay in Thailand, it is amazing how many times I heard the same stupid reply - "watch out for them ladyboys!" Again and again,

Ladyboy