Guest User

Untitled

a guest
Jan 18th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. android.view.InflateException: Binary XML file line #44: Error inflating class com.google.vr.sdk.widgets.video.VrVideoView
  2.  
  3. <LinearLayout
  4. android:layout_width="match_parent"
  5. android:orientation="vertical"
  6. android:layout_height="wrap_content">
  7. <TextView
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:text="@string/gorilla_info"
  11. android:layout_marginTop="@dimen/activity_vertical_margin"
  12. android:layout_marginStart="@dimen/activity_horizontal_margin"
  13. android:layout_marginBottom="@dimen/activity_vertical_margin"
  14. android:id="@+id/textView" />
  15. <com.google.vr.sdk.widgets.video.VrVideoView
  16. android:id="@+id/video_view"
  17. android:layout_width="match_parent"
  18. android:scrollbars="none"
  19. android:layout_height="250dip"/>
  20.  
  21. <!-- Seeking UI & progress indicator.-->
  22. <SeekBar
  23. android:id="@+id/seek_bar"
  24. style="?android:attr/progressBarStyleHorizontal"
  25. android:layout_height="32dp"
  26. android:layout_width="fill_parent"/>
  27. <TextView
  28. android:id="@+id/status_text"
  29. android:text="Loading Video..."
  30. android:layout_height="wrap_content"
  31. android:layout_width="fill_parent"
  32. android:textSize="12sp"
  33. android:paddingStart="32dp"
  34. android:paddingEnd="32dp"/>
  35.  
  36.  
  37. </LinearLayout>
  38.  
  39. android {
  40. compileSdkVersion 23
  41. buildToolsVersion "23.0.2"
  42.  
  43. defaultConfig {
  44. applicationId "com.google.devrel.vrviewapp"
  45. minSdkVersion 19
  46. targetSdkVersion 23
  47. versionCode 1
  48. versionName "1.0"
  49. }
  50. buildTypes {
  51. release {
  52. minifyEnabled false
  53. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  54. ndk {
  55. abiFilters "armeabi", "armeabi-v7a", "x86"
  56. }
  57. }
  58. }
  59. }
  60. dependencies {
  61. compile 'com.android.support:appcompat-v7:23.3.0'
  62. compile 'com.android.support:design:23.3.0'
  63. compile project(':gvr-android-sdk/libraries:common')
  64. compile project(':gvr-android-sdk/libraries:commonwidget')
  65. compile project(':gvr-android-sdk/libraries:panowidget')
  66. compile project(':gvr-android-sdk/libraries:videowidget')
  67. compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
  68. }
  69.  
  70. View view = inflater.inflate(R.layout.gorilla_fragment, container,false);
  71.  
  72.  
  73. @Nullable
  74. @Override
  75. public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
  76. View view = inflater.inflate(R.layout.gorilla_fragment, container,false);
  77. seekBar = (SeekBar) view.findViewById(R.id.seek_bar);
  78. statusText = (TextView) view.findViewById(R.id.status_text);
  79. videoWidgetView = (VrVideoView) view.findViewById(R.id.video_view);
  80. }
  81.  
  82. 'com.google.android.exoplayer:exoplayer:r1.5.10'
  83.  
  84. dependencies {
  85. compile 'com.android.support:appcompat-v7:23.3.0'
  86. compile 'com.android.support:design:23.3.0'
  87. compile project(':gvr-android-sdk/libraries:common')
  88. compile project(':gvr-android-sdk/libraries:commonwidget')
  89. compile project(':gvr-android-sdk/libraries:panowidget')
  90. compile project(':gvr-android-sdk/libraries:videowidget')
  91. compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
  92.  
  93. def vrVersion = "1.180.0"
  94.  
  95. dependencies {
  96.  
  97. implementation "com.google.vr:sdk-base:$vrVersion"
  98. implementation "com.google.vr:sdk-audio:$vrVersion"
  99. implementation "com.google.vr:sdk-common:$vrVersion"
  100. implementation "com.google.vr:sdk-commonwidget:$vrVersion"
  101. implementation "com.google.vr:sdk-panowidget:$vrVersion"
  102. implementation "com.google.vr:sdk-videowidget:$vrVersion"
  103. }
Add Comment
Please, Sign In to add comment