大家好:
下了一个图片浏览的源码,用到了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' 文件和目录都存在,不知为何?请教高手解答,谢谢!
问题应该出现在你这个定法,前面后面空格的原因,我直接负责你的过去编译也是报相同的问题,但我重新写了一次就好了,
LOCAL_STATIC_JAVA_LIBRARIES:=\
android-common\
android-supprot-v4\
libPhotoView
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。