小编Dhr*_*ubo的帖子

apktool不生成apk文件

我使用apktool 2.0.0 rc4版本和使用该工具解压缩的CP.apk文件,然后修改了一个文件并尝试使用"apktool b CP test.apk"命令重新打包它

输出如下,但工作目录中没有test.apk.

...\apktool>apktool b CP test.apk
I: Using Apktool 2.0.0-RC3 on CP
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Copying raw resources...
I: Building apk file...
I: Copying unknown files/dir...
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

android apktool

9
推荐指数
1
解决办法
6719
查看次数

Android应用中自定义ImageView的ClassNotFoundException

我得到以下例外......

08-12 14:19:41.564: ERROR/AndroidRuntime(797): Caused by: java.lang.ClassNotFoundException: com.widgets.utils.CustomRoundedCornerImageView in loader dalvik.system.PathClassLoader[.]
Run Code Online (Sandbox Code Playgroud)

我创建了一个自定义的ImageView,即com.widgets.utils.CustomRoundedCornerImageView,并在布局xml中使用它.CustomRoundedCornerImageView.java与其他类在类路径中.

CustomRoundedCornerImageView.java

package com.widgets.utils;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;

public class CustomRoundedCornerImageView extends ImageView {

    public CustomRoundedCornerImageView(Context context) {
        super(context);
    }
    public CustomRoundedCornerImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public CustomRoundedCornerImageView(Context context, AttributeSet attrs,
            int defStyle) {
        super(context, attrs, defStyle);
    }


    @Override
    protected void onDraw(Canvas …
Run Code Online (Sandbox Code Playgroud)

android

8
推荐指数
1
解决办法
4776
查看次数

标签 统计

android ×2

apktool ×1