As the note of your project's build.gradle file suggests: // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files Remove the 2 compile statements in that gradle file: compile 'com.android.support:appcompat-v7:20.+' compile 'com.google.android.gms:play-services:6.5.+' And then make your other (module's) build.gradle dependencies look like this: dependencies { compile fileTree ( dir : 'libs' , include : [ '*.jar' ]) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.google.android.gms:play-services:6.5.+' }
# Note that NDK_MODULE_PATH must contain the patchfield parent directory. The # makefile in PcmSample implicitly takes care of this. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := pcmsource LOCAL_LDLIBS := -llog LOCAL_SRC_FILES := pcmsource.c LOCAL_STATIC_LIBRARIES := audiomodule include $(BUILD_SHARED_LIBRARY) $(call import-add-path, C:\Users\310151586\Downloads\AudioEnginePitchTest-master\AudioEnginePitchTest-master\PcmSample1\patchfield) $(call import-module,src\main\jni)
java.lang.ClassCastException: com.philips.platform.lumea.firsttreatmentflow.treatmentstart.StartControllerView cannot be cast to android.view.ViewGroup You can group Views, but you need to use a ViewGroup not a View. Examples of ViewGroups are LinearLayout (for displaying sub-Views horizontally or vertically), RelativeLayout (for displaying sub-Views using relative positions), FrameLayout, TableLayout etc. Use whichever ViewGroup suits your needs. To get something working, change the two Views in your XML to FrameLayouts. And also give the Button and TextView layout parameters (e.g. android:layout_width="wrap_content", same for height) - otherwise you'll get another error when you run it.
Comments
Post a Comment