[Galaxy Note GT-N7000 Android Development] majdinj:
In your log, it shows something like this:

java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
[17,4] Error for input '.param': Invalid directive
[18,4] Error for input '.param': Invalid directive
[38,4] Error for input '.param': Invalid directive
[58,4] Error for input '.param': Invalid directive
[303,4] Error for input '.param': Invalid directive
[346,4] Error for input '.param': Invalid directive
[378,4] Error for input '.param': Invalid directive
[400,4] Error for input '.param': Invalid directive
[412,4] Error for input '.param': Invalid directive
[17,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[38,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[58,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[303,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[346,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[378,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[400,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[412,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE

If you look at the log, it says there is problem with line #17, line #18, line #38, line #58, line #303, line #346, line #378, line #400, line #412 for .param and again same lines for p1

and if you look to your smali by notepad++, you will find these at the corresponding lines that are pointed by the log itself:

.class public Lcom/android/settings/wfd/IndexedTextLayout;
.super Landroid/widget/LinearLayout;
.source "IndexedTextLayout.java"

# instance fields
.field private mContext:Landroid/content/Context;

.field private mIsTablet:Z

.field private mTextIndex:I

# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
[B][COLOR="Red"].param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;[/COLOR][/B]

.prologue
.line 24
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.line 21
const/4 v0, 0x0

iput-boolean v0, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mIsTablet:Z

.line 26
invoke-direct {p0, p1}, Lcom/android/settings/wfd/IndexedTextLayout;->init(Landroid/content/Context;)V

.line 27
return-void
.end method

.method private init(Landroid/content/Context;)V
.registers 3
[B][COLOR="Red"].param p1, "context" # Landroid/content/Context;[/COLOR][/B]

.prologue
const/4 v0, 0x1

.line 30
iput-object p1, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mContext:Landroid/content/Context;

.line 31
iput v0, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mTextIndex:I

.line 32
invoke-virtual {p0, v0}, Lcom/android/settings/wfd/IndexedTextLayout;->setOrientation(I)V

.line 33
return-void
.end method

.method private setLayoutTextStyle(Ljava/lang/String;)Landroid/widget/TextView;
.registers 13
[B][COLOR="Red"].param p1, "str" # Ljava/lang/String;[/COLOR][/B]

.prologue
const/16 v10, 0x3e8

const/4 v9, 0x0

const/4 v8, -0x1

const/4 v7, 0x1

const/4 v6, -0x2

.line 58
new-instance v2, Landroid/widget/RelativeLayout;

iget-object v4, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mContext:Landroid/content/Context;

invoke-direct {v2, v4}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

.line 60
.local v2, "ll":Landroid/widget/RelativeLayout;
new-instance v1, Landroid/widget/TextView;

iget-object v4, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mContext:Landroid/content/Context;

invoke-direct {v1, v4}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

.line 61
.local v1, "indexTextView":Landroid/widget/TextView;
new-instance v0, Landroid/widget/TextView;

iget-object v4, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mContext:Landroid/content/Context;

invoke-direct {v0, v4}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

.line 63
.local v0, "contentTextView":Landroid/widget/TextView;
invoke-direct {p0, v1}, Lcom/android/settings/wfd/IndexedTextLayout;->setTextStyle(Landroid/widget/TextView;)V

.line 64
invoke-direct {p0, v0}, Lcom/android/settings/wfd/IndexedTextLayout;->setTextStyle(Landroid/widget/TextView;)V

.line 66
invoke-virtual {p1}, Ljava/lang/String;->toCharArray()[C

move-result-object v4

invoke-virtual {p1}, Ljava/lang/String;->length()I

move-result v5

invoke-static {v4, v9, v5}, Ljava/text/Bidi;->requiresBidi([CII)Z

move-result v4

if-eqz v4, :cond_89

.line 67
new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

invoke-direct {v3, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

.line 68
.local v3, "lp":Landroid/widget/RelativeLayout$LayoutParams;
iput-boolean v7, v3, Landroid/widget/RelativeLayout$LayoutParams;->alignWithParent:Z

.line 70
const/16 v4, 0xb

invoke-virtual {v3, v4, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

.line 71
invoke-virtual {v1, v10}, Landroid/widget/TextView;->setId(I)V

.line 72
invoke-virtual {v2, v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

.line 73
invoke-virtual {v2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

.line 74
invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v3

.end local v3 # "lp":Landroid/widget/RelativeLayout$LayoutParams;
check-cast v3, Landroid/widget/RelativeLayout$LayoutParams;

.line 75
.restart local v3 # "lp":Landroid/widget/RelativeLayout$LayoutParams;
invoke-virtual {v1}, Landroid/widget/TextView;->getId()I

move-result v4

invoke-virtual {v3, v9, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

.line 77
new-instance v4, Ljava/lang/StringBuilder;

invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

const-string v5, "\n"

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4

invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 78
new-instance v4, Ljava/lang/StringBuilder;

invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

const-string v5, " ."

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

iget v5, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mTextIndex:I

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v4

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4

invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 93
:goto_7f
invoke-virtual {p0, v2}, Lcom/android/settings/wfd/IndexedTextLayout;->addView(Landroid/view/View;)V

.line 94
iget v4, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mTextIndex:I

add-int/lit8 v4, v4, 0x1

iput v4, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mTextIndex:I

.line 95
return-object v0

.line 80
.end local v3 # "lp":Landroid/widget/RelativeLayout$LayoutParams;
:cond_89
new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

invoke-direct {v3, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

.line 81
.restart local v3 # "lp":Landroid/widget/RelativeLayout$LayoutParams;
iput-boolean v7, v3, Landroid/widget/RelativeLayout$LayoutParams;->alignWithParent:Z

.line 83
const/16 v4, 0x9

invoke-virtual {v3, v4, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

.line 84
invoke-virtual {v1, v10}, Landroid/widget/TextView;->setId(I)V

.line 85
invoke-virtual {v2, v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

.line 86
invoke-virtual {v2, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

.line 87
invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v3

.end local v3 # "lp":Landroid/widget/RelativeLayout$LayoutParams;
check-cast v3, Landroid/widget/RelativeLayout$LayoutParams;

.line 88
.restart local v3 # "lp":Landroid/widget/RelativeLayout$LayoutParams;
invoke-virtual {v1}, Landroid/widget/TextView;->getId()I

move-result v4

invoke-virtual {v3, v7, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

.line 90
new-instance v4, Ljava/lang/StringBuilder;

invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

const-string v5, "\n"

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4

invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 91
new-instance v4, Ljava/lang/StringBuilder;

invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

iget v5, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mTextIndex:I

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v4

const-string v5, ". "

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4

invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

goto :goto_7f
.end method

.method private setTextStyle(Landroid/widget/TextView;)V
.registers 3
[B][COLOR="Red"].param p1, "indexTextView" # Landroid/widget/TextView;[/COLOR][/B]

.prologue
.line 110
const/high16 v0, 0x41900000

invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextSize(F)V

.line 111
iget-boolean v0, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mIsTablet:Z

if-eqz v0, :cond_13

.line 112
const-string v0, "#000000"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

.line 116
:goto_12
return-void

.line 114
:cond_13
const-string v0, "#d7d7d7"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

goto :goto_12
.end method

# virtual methods
.method public addContent(I)V
.registers 5
[B][COLOR="Red"].param p1, "strId" # I[/COLOR][/B]

.prologue
.line 49
const-string v1, "IndexedTextLayout"

const-string v2, "add Content in IndexedTextLayout"

invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 51
invoke-virtual {p0}, Lcom/android/settings/wfd/IndexedTextLayout;->getResources()Landroid/content/res/Resources;

move-result-object v1

invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v0

.line 53
.local v0, "str":Ljava/lang/String;
invoke-direct {p0, v0}, Lcom/android/settings/wfd/IndexedTextLayout;->setLayoutTextStyle(Ljava/lang/String;)Landroid/widget/TextView;

.line 54
invoke-virtual {p0}, Lcom/android/settings/wfd/IndexedTextLayout;->invalidate()V

.line 55
return-void
.end method

.method public addContent(Ljava/lang/String;)V
.registers 4
[B][COLOR="Red"].param p1, "str" # Ljava/lang/String;[/COLOR][/B]

.prologue
.line 99
const-string v0, "IndexedTextLayout"

const-string v1, "add Content in IndexedTextLayout"

invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 100
invoke-direct {p0, p1}, Lcom/android/settings/wfd/IndexedTextLayout;->setLayoutTextStyle(Ljava/lang/String;)Landroid/widget/TextView;

.line 102
invoke-virtual {p0}, Lcom/android/settings/wfd/IndexedTextLayout;->invalidate()V

.line 103
return-void
.end method

.method public setIsTablet(Z)V
.registers 2
[B][COLOR="Red"].param p1, "tablet" # Z[/COLOR][/B]

.prologue
.line 106
iput-boolean p1, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mIsTablet:Z

.line 107
return-void
.end method

.method public setText(I)V
.registers 6
[B][COLOR="Red"].param p1, "strId" # I[/COLOR][/B]

.prologue
.line 36
invoke-virtual {p0}, Lcom/android/settings/wfd/IndexedTextLayout;->getResources()Landroid/content/res/Resources;

move-result-object v3

invoke-virtual {v3, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v2

.line 38
.local v2, "str":Ljava/lang/String;
new-instance v1, Landroid/widget/LinearLayout;

iget-object v3, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mContext:Landroid/content/Context;

invoke-direct {v1, v3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

.line 39
.local v1, "ll":Landroid/widget/LinearLayout;
new-instance v0, Landroid/widget/TextView;

iget-object v3, p0, Lcom/android/settings/wfd/IndexedTextLayout;->mContext:Landroid/content/Context;

invoke-direct {v0, v3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

.line 40
.local v0, "contentTextView":Landroid/widget/TextView;
invoke-direct {p0, v0}, Lcom/android/settings/wfd/IndexedTextLayout;->setTextStyle(Landroid/widget/TextView;)V

.line 41
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

.line 42
invoke-virtual {p0, v1}, Lcom/android/settings/wfd/IndexedTextLayout;->addView(Landroid/view/View;)V

.line 43
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 45
invoke-virtual {p0}, Lcom/android/settings/wfd/IndexedTextLayout;->invalidate()V

.line 46
return-void
.end method

Here, you have 3 options:

1) either to delete these lines (the red ones) and that's all (don't worry it will not affect the smali, since these lines are used for debugging purpose only) - This is the easiest way. :)

2) or you change all:

.param p1, "someTextHere"

to:

.parameter "someTextHere"

3) or use baksmali/smali by JF instead of apktool