1
回答
基于源码开发如何引入support-v4?
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

大家好:

      下了一个图片浏览的源码,用到了android-support-v4,但在编译时报错:

make: *** No rule to make target `/home/wenm/android4.2.2/out/target/common/obj/JAVA_LIBRARIES/android-supprot-v4_intermediates/javalib.jar', needed by `/home/wenm/android4.2.2/out/target/common/obj/APPS/PhotoViewSample_intermediates/classes-full-debug.jar'.  Stop.
make: Leaving directory `/home/wenm/android4.2.2'
wenm@ubuntu :~/android4.2.2/experiment/PhotoView/sample$

android.mk如下:

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

# optional: for all version
#     user: only for user version
#      eng: only for eng version
LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

#LOCAL_PROGUARD_ENABLED := disabled
#LOCAL_JAVA_LIBRARIES := telephony-common
#LOCAL_STATIC_JAVA_LIBRARIES := \
#    com.android.phone.common \
#    com.android.vcard \
#    android-common \
#    guava \
#    android-support-v13 \
#    android-support-v4 \
#    android-ex-variablespeed \

#LOCAL_REQUIRED_MODULES := libvariablespeed

LOCAL_STATIC_JAVA_LIBRARIES := \
    android-common \
    android-supprot-v4 \
    libPhotoView \

LOCAL_PACKAGE_NAME := PhotoViewSample
LOCAL_CERTIFICATE := shared

#LOCAL_PROGUARD_FLAG_FILES := proguard.flags

include $(BUILD_PACKAGE)

# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))

##########################################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libPhotoView:./libs/PhotoView.jar
include $(BUILD_MULTI_PREBUILT)
##########################################

/home/wenm/android4.2.2/out/target/common/obj/JAVA_LIBRARIES/android-supprot-v4_intermediates/javalib.jar'  文件和目录都存在,不知为何?请教高手解答,谢谢!


举报
wenm
发帖于3年前 1回/932阅
顶部