Forum Discussion

KouTsuneka's avatar
KouTsuneka
Explorer
9 years ago
Solved

Build with Android Studio got error: package com.oculus.vrappframework does not exist

I got this error when trying to build any project in Android Studio (Mobile SDK 1.0.4).  It works with 1.0.3. Please help me. Grade 2.10 com.android.tools.build:gradle:1.5.0 NDK r12b Android Studi...
  • KouTsuneka's avatar
    9 years ago
    The problem is in  this line (in any AndroidPrebuilt\jni\Android.mk)
    LOCAL_SRC_FILES := ../../../Libs/Android/$(TARGET_ARCH_ABI)/$(BUILDTYPE)/libvrappframework.a

    variable $(BUILDTYPE) return empty so gradle cound't find c++ static library

    and this condition statement here hide "path not found" error message
    ifneq (,$(wildcard $(LOCAL_PATH)/$(LOCAL_SRC_FILES)))
    include $(PREBUILT_STATIC_LIBRARY)
    endif

    workaround by hard code your build type 
    LOCAL_SRC_FILES := ../../../Libs/Android/$(TARGET_ARCH_ABI)/Debug/libvrappframework.a

    another same problem missing java library
    // add this line (correspond with library AndroidPrebuilt/build.gradle - VrApi doesn't have this)
    artifacts.add('default', file("../../Libs/Android/aar/Debug/VrGUI.aar"))