Hello get this error when i try to set the Mobile.Droid project to release and build, this error does not occur in debug mode.
Severity Code Description Project File Line Suppression State Error "java.exe" exited with code 1. NOOR.Sched.Mobile.Droid
30 Answer(s)
-
0
hi @avanekar02,
I already compiled your solution, archieved and took a screenshot to show it's working on my machine, also sent a copy of working solution to you. That means there's no problem related with the code. So you need to find out what's missing in your machine configuration. Uninstall your Visual Studio and install the latest Visual Studio. Install all components of Xamarin. Install latest Android SDK to your machine.
-
0
hello
i will uninstall and reinstall all as per your advice,then give you the feedback..
thank you alper
-
0
By the way, I guess you still check
Enable Proguard
option on Android Options window. Proguard obfuscates Java code and removes/renames some resources (and sometimes makes mistakes while finding the references when reflection is being used) that's why you see these errors:No resource found that matches the given name (at 'background' with value '@drawable/cc_rounded_corners'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\MonoAndroid81\lp\12\jl\res\layout\cc_activity_status_message.xml 2
Proguard should be enabled very carefully. You have to configure Proguard to not obfuscate these sensitive names. Before enabling Proguard, learn more about how it works, how you can skip these errors. https://docs.microsoft.com/en-us/xamarin/android/deploy-test/release-prep/?tabs=windows#proguard
Lastly, watch the video to check out how we successfully archieve and package your Xamarin app: https://vimeo.com/310492853
-
0
Hello Alper
i uninstalled VS 2017, reinstalled it , installed all latest ,
unchecked proguard and tried to compile the droid project i still get the same 8 errors,
that i have put up on the issue.can you please logon to mys system using teamviewer to assist me in the same.
regards Anwar
Severity Code Description Project File Line Suppression State Error No resource found that matches the given name (at 'background' with value '@drawable/cc_rounded_corners'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_status_message.xml 2 Error No resource found that matches the given name (at 'background' with value '@drawable/cc_rounded_corners'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_status_message.xml 2 Error No resource found that matches the given name (at 'layout_marginTop' with value '@dimen/profile_margin'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_viewuserprofile.xml 2 Error No resource found that matches the given name (at 'layout_width' with value '@dimen/profile_image_size'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_viewuserprofile.xml 2 Error No resource found that matches the given name (at 'layout_height' with value '@dimen/profile_image_size'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_viewuserprofile.xml 2 Error No resource found that matches the given name (at 'layout_width' with value '@dimen/profile_image_size'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_view_profile.xml 9 Error No resource found that matches the given name (at 'layout_height' with value '@dimen/profile_image_size'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_view_profile.xml 9 Error No resource found that matches the given name (at 'layout_marginTop' with value '@dimen/profile_margin'). NOOR.Sched.Mobile.Droid C:\Users\Apple\Documents\Sched\src\NOOR.Sched.Mobile.Droid\obj\Debug\81\lp\12\jl\res\layout\cc_activity_view_profile.xml 9
-
0
on Android options switch mode to Release