Closed DougLazyAngus closed 8 years ago
Are you able to replicate this problem using our sample application (without using other plugins)? Can you decompile or inspect the unity-plugin-jar to see if the UnityAdListener class is present? Using our current release, I am unable to reproduce this issue and by inspecting the jar I am able to find the class .
I have been thrashing, for weeks, because of issues with the Google related plugins on Android.
I finally just went nuclear and deleted my whole Plugins directory and a whole bunch of related files, then re-installed.
Things work fine on iOS.
On Android, I am getting this error when I try to export the Android project:
(See spew below).
In general, I have been really unhappy with how complicated it has been to use plugins from Google on Android. Particularly Ads & Play. They step all over each other.
Error building Player: CommandInvokationFailure: Failed to re-package
resources. See the Console for details.
/Users/douglasbanks/Library/Android/sdk/build-tools/23.0.2/aapt package
--auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I
"/Users/douglasbanks/Library/Android/sdk/platforms/android-23/android.jar"
-F bin/resources.ap_ --extra-packages
com.chartboost.sdk.unity:com.google.unity:com.google.example.games.mainlibproj:com.soomla.SoomlaApp:android.support.v7.appcompat:com.facebook:com.facebook.android:com.google.android.gms:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.nearby:com.google.android.gms.plus:android.support.v4
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/AN_Res/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/facebook-android-sdk-4.8.2/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/facebook-android-wrapper-release/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/play-services-base-8.4.0/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/play-services-basement-8.4.0/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/play-services-drive-8.4.0/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/play-services-games-8.4.0/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/play-services-nearby-8.4.0/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/play-services-plus-8.4.0/res"
-S
"/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/support-v4-23.1.1/res"
stderr[
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_alert_dialog_button_bar_material.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:layoutDirection from
<android.support.v7.widget.ButtonBarLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_alert_dialog_button_bar_material.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/abc_alert_dialog_button_bar_material
for configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_alert_dialog_material.xml:48:
note: removing attribute
http://schemas.android.com/apk/res/android:textAlignment from
<android.support.v7.widget.DialogTitle>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_alert_dialog_material.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/abc_alert_dialog_material for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_dialog_title_material.xml:29:
note: removing attribute
http://schemas.android.com/apk/res/android:textAlignment from <TextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_dialog_title_material.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/abc_dialog_title_material for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_screen_toolbar.xml:27:
note: removing attribute
http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from
<android.support.v7.widget.ActionBarContainer>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_screen_toolbar.xml:
note: using v21 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/abc_screen_toolbar for configuration
v21.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_search_view.xml:47:
note: removing attribute
http://schemas.android.com/apk/res/android:layoutDirection from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/abc_search_view.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/abc_search_view for configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media.xml:42:
note: removing attribute
http://schemas.android.com/apk/res/android:layoutDirection from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media.xml:34:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from <include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media.xml:34:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/notification_template_big_media for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:60:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:46:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toEndOf from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:46:
note: removing attribute
http://schemas.android.com/apk/res/android:layoutDirection from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:38:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from <include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:38:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:30:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_alignParentEnd from
<include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_big_media_narrow.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/notification_template_big_media_narrow
for configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_lines.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_lines.xml:77:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_lines.xml:96:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingStart from <TextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_lines.xml:64:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from
<TextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_lines.xml:27:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_lines.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/notification_template_lines for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_media.xml:43:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_media.xml:33:
note: removing attribute
http://schemas.android.com/apk/res/android:layoutDirection from
<LinearLayout>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_media.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/notification_template_media for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_part_chronometer.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_part_chronometer.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/notification_template_part_chronometer
for configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_part_time.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/notification_template_part_time.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/notification_template_part_time for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_powered_by_google.xml:28:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_powered_by_google.xml:28:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from
<ImageView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_powered_by_google.xml:8:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_marginStart from <View>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_powered_by_google.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/place_autocomplete_item_powered_by_google
for configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_prediction.xml:52:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toEndOf from <TextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_prediction.xml:35:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_toEndOf from <TextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_prediction.xml:8:
note: removing attribute
http://schemas.android.com/apk/res/android:layout_alignParentStart from
<include>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_item_prediction.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/place_autocomplete_item_prediction for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_progress.xml:2:
note: removing attribute
http://schemas.android.com/apk/res/android:indeterminateTint from
<ProgressBar>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_progress.xml:2:
note: removing attribute
http://schemas.android.com/apk/res/android:indeterminateTintMode from
<ProgressBar>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/layout/place_autocomplete_progress.xml:
note: using v21 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/place_autocomplete_progress for
configuration v21.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/select_dialog_multichoice_material.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingStart from
<CheckedTextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/select_dialog_multichoice_material.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/select_dialog_multichoice_material.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/select_dialog_multichoice_material for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/select_dialog_singlechoice_material.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingStart from
<CheckedTextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/select_dialog_singlechoice_material.xml:18:
note: removing attribute
http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/appcompat-v7-23.1.1/res/layout/select_dialog_singlechoice_material.xml:
note: using v17 attributes; synthesizing resource
com.snackfortgames.lazyangus:layout/select_dialog_singlechoice_material for
configuration v17.
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/base_attrs.xml:11:
error: Attribute "buttonSize" has already been defined
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/base_attrs.xml:16:
error: Attribute "colorScheme" has already been defined
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/base_attrs.xml:21:
error: Attribute "scopeUris" has already been defined
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/common_attrs.xml:13:
error: Attribute "imageAspectRatioAdjust" has already been defined
/Users/douglasbanks/lazyAngus/LazyAngus/Temp/StagingArea/android-libraries/google-play-services_lib/res/values/commo<message
truncated>
On Fri, Dec 18, 2015 at 8:21 AM, rampara notifications@github.com wrote:
Are you able to replicate this problem using our sample application?
- Ram
— Reply to this email directly or view it on GitHub https://github.com/googleads/googleads-mobile-unity/issues/144#issuecomment-165823720 .
Doug Banks (650) 346 2107
I deleted and re-added the Google Mobile Ad library. Made some adjustments to be compatible with Google Play, a-la this thread: https://github.com/playgameservices/play-games-plugin-for-unity/issues/814
Now when I try to compile and run, I see the unity logo for a second, then I see this:
Just static.
I am not even getting to the line of code that was producing the original error, where I try to make a new BannerAd.
Are you seeing the same behavior in our sample application ?
Closing issue due to non-response. If this issue persists, please re-open.
I had Google Ads working on Android. Realized recently I haven't seen them in a while, looked into why.
I am getting this spew in Android error logs:
I have poked around online, specifically here: https://groups.google.com/forum/#!topic/google-admob-ads-sdk/JylKVknyF04
I re-installed the unitypackage. I do have the unity-plugin-library.jar in my plugins directory, and it does seem to know something about this symbol:
I did have to remove one of the other files, per instructions in this thread: https://github.com/googleads/googleads-mobile-unity/issues/111 due to conflicts with Soomla.
???