integrating google play game, build error

Hi guys, I’m trying to integrate google play game unity package. I got app ID and install google play game unity package. Whenever I try to build my game, I got following error,

Error building Player: CommandInvokationFailure: Failed to recompile android resource files. 
See the Console for details. 

/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/javac
-bootclasspath "/Users/jbssy/Library/Android/sdk/platforms/android-22/android.jar"
-d "/Users/jbssy/Projects/JumpingLarva/JumpingLarva_v1.0_phone_admob/Temp/StagingArea/bin/classes"
-source 1.6 -target 1.6 -encoding UTF-8 "com/fluku/game/R.java" "com/google/unity/R.java" "com/unity/package/R.java"

stderr[ com/unity/package/R.java:8: error: <identifier> expected package com.unity.package;
                  ^ 1 error ]

For the first time, I suspected AndroidManifest.xml file, but whatever I modified, it gives me same error.
And I update Android SDK. And I updated Java from 7.0_71 to 8.0.40, but still give me same message.

What is " expected package com.unity.pakage? Where should I start to fix this error?

Thank you in advance.

In my case the problem was solved when I renamed my package from ‘company.name.gamename’ to ‘com.companyname.gamename’.

The bundle identifier should be exact to the Company name and Product name you have given in player settings. It should be in the format

com.(Company Name).(Product Name)