Android studio我們那些年遇到的坑(一)

Android studio我們那些年遇到的坑(一)


總結(jié)一下最近多年遇到的andorid studio重大問(wèn)題骑祟,常見(jiàn)錯(cuò)誤锋叨,另奉上處理方法

有些是查找資料看到的添瓷,有些是自己遇到的持續(xù)更新中

1鹅髓、無(wú)緣無(wú)故報(bào)這個(gè)錯(cuò)瑟押,Error:Protocol?family?unavailable

該錯(cuò)誤很多地方都是說(shuō)防火墻的問(wèn)題其實(shí)不然。

參考http://bbs.csdn.net/topics/391951751?page=1

?在環(huán)境變量中增加新的變量??_JAVA_OPTIONS??

其變量值為-Djava.net.preferIPv4Stack=true???,之后重啟Android?studio就好了

2锅很、Error?running?app:?Instant?Run?requires?'Tools?|?Android?|?Enable?ADB?integration'?to?be?enabled.

解決方案:

菜單欄其馏,Tools -> Adnroid -> enable ADB integration

3、Error:(1,?0)?Cause:?com/android/build/gradle/LibraryPlugin?:?Unsupported?major.minor?version?52.0

這個(gè)錯(cuò)誤的原因是在 工程的build.gradle

文件中的gradle 工具配置使用了gradle:+

將它

classpath 'com.Android.tools.build:gradle:+'

替換為固定版本的gradle爆安。問(wèn)題解決

?classpath "com.android.tools.build:gradle:2.1.0"

Android—那些年我們?cè)?jīng)遇到過(guò)的坑尝偎。。鹏控。

http://mp.weixin.qq.com/s?__biz=MzI0NDQ4OTIxMQ==&mid=2247483681&idx=1&sn=e732910939f893d31f20175e7e268cef&scene=1&srcid=0804rAdY9dvxT5PTWX2loTk6#rd

寫(xiě)在前面的:

曾經(jīng)有沒(méi)有在為引入一個(gè)lib而出現(xiàn)各種問(wèn)題而崩潰?有沒(méi)有升級(jí)studio之后各種問(wèn)題而煩惱肤寝?有沒(méi)有被一些莫名其妙的問(wèn)題而困擾当辐?

那就好好看看下面的總結(jié)吧,鲤看,缘揪,,

(1)將Eclipse項(xiàng)目導(dǎo)入到Android studio 中 很多點(diǎn)9圖出現(xiàn)問(wèn)題解決方法:

在build.gradle里添加以下兩句:

aaptOptions.cruncherEnabled = false ? ?

aaptOptions.useNewCruncher = false

用來(lái)關(guān)閉Android Studio的PNG合法性檢查的义桂,直接不讓它檢查找筝。

(2)Android Studio 錯(cuò)誤: 非法字符: '\ufeff' 解決方案|錯(cuò)誤: 需要class, interface或enum

原因:

Eclipse可以智能的把UTF-8+BOM文件轉(zhuǎn)為普通的UTF-8文件,Android Studio還沒(méi)有這個(gè)功能慷吊,所以使用Android Studio編譯UTF-8+BOM編碼的文件時(shí)會(huì)出現(xiàn)” 非法字符: '\ufeff' “之類(lèi)的錯(cuò)誤

解決方法:

手動(dòng)將UTF-8+BOM編碼的文件轉(zhuǎn)為普通的UTF-8文件袖裕。用EdItPlus打開(kāi).java文件依次:文檔》文本編輯》轉(zhuǎn)換文本編碼》選擇UTF-8編碼即可

(3)將項(xiàng)目導(dǎo)入到AS中出現(xiàn)以下問(wèn)題:

Error:Execution failed for task

':app:transformResourcesWithMergeJavaResForDebug'

. > com.android.bui

解決方法:

在build.grade中添加以下代碼:

android{

packagingOptions {

exclude 'META-INF/DEPENDENCIES.txt'exclude

'META-INF/NOTICE'exclude 'META-INF/NOTICE.txt'

exclude 'META-INF/LICENSE'exclude 'META-INF/LICENSE.txt'

}

}

(4)未知錯(cuò)誤

Error:Timeout waiting to lock cp_proj class cache for

build file '/Users/Mr.xiao/Desktop/AndroidShopNC2014Mob

lieNew/androidShopNC2014Moblie/build.gradle'

(/Users/Mr.xiao/.gradle/caches/2.10/scripts

/build_3cyr7hzjurcc62ge3ixidshos/cp_proj).

It is currently in use by another Gradle instance.

Owner PID: unknownOur PID: 1412Owner Operation:

unknownOur operation: Initialize cacheLock

file: /Users/Mr.xiao/.gradle/caches/2.10/scripts/build_3

cyr7hzjurcc62ge3ixidshos/cp_proj/cache.properties.lock

解決方案

以上是錯(cuò)誤提示。

解決的思路很簡(jiǎn)單只需要把cache.properties.lock文件刪除了就可以了溉瓶。當(dāng)時(shí)我們刪除的時(shí)候會(huì)被占用這時(shí)候需要進(jìn)入任務(wù)管理器結(jié)束關(guān)于java的進(jìn)程就行比如 java 的jdk 刪除后重啟讓java jdk啟動(dòng) ?啟動(dòng)Android Studio就能啟動(dòng)APK了急鳄。

(5)修改了Android項(xiàng)目的最小SDK版本之后出現(xiàn)很多stysle文件找不到

解決方案

compileSdkVersion 23buildToolsVersion "23.0.3"

defaultConfig {

applicationId "net.mmloo2014.android"minSdkVersion

14targetSdkVersion 23}

compileSdkVersion 是多少版本的

那么compile 'com.android.support:appcompat-v7:23.2.1’ 就是啥版本的。

(6)Android studio 編譯問(wèn)題:finished with non-zero exit value 2 問(wèn)題:

Error:Execution failed for task '

:androidShopNC2014Moblie:transformClassesWithDexForDebug'

.>com.android.build.api.transform.TransformException:

com.android.ide.common.process.ProcessException:

java.util.concurrent.ExecutionException:

com.android.ide.common.process.ProcessException:

org.gradle.process.internal.ExecException:

Process 'command '/Library/Java/JavaVirtualMachines/

jdk1.7.0_79.jdk/Contents/Home/bin/java''

finished with non-zero exit value 2

解決方案

這個(gè)錯(cuò)誤在app的build.gradle里面添加下面這句就好了堰酿。

android {

defaultConfig {

multiDexEnabled true

? ? ?}

}

(7)Android studio 編譯問(wèn)題:finished with non-zero exit value 1(由于導(dǎo)入的依賴(lài)出現(xiàn)重復(fù)造成的)

問(wèn)題:

Error:Execution failed for task '

:app:transformClassesWithDexForDebug'.

> com.[Android](http://lib.csdn.net/base/15).build.api.

transform.TransformException:

com.android.ide.common.process.ProcessException:

org.gradle.process.internal.ExecException:

Process 'command 'F:\Program Files (x86)\[Java]

(http://lib.csdn.net/base/17)\jdk1.8.0_31\bin\java.exe'

' finished with non-zero exit value 1

解決方案

這個(gè)是因?yàn)橐蕾?lài)包重復(fù)了 (像v4和nineoldandroids)疾宏,app中實(shí)現(xiàn)了對(duì)easeUI的依賴(lài),但是app和easeUI都添加了對(duì)這個(gè)包的依賴(lài)触创。所以就報(bào)這個(gè)錯(cuò)誤坎藐,修改之后再報(bào),就clean哼绑,rebuild一下岩馍。

(8)問(wèn)題

Error:Execution failed for task

':app:transformClassesWithJarMergingForDebug'.>

com.android.build.api.transform.TransformException:

java.util.zip.ZipException:duplicate entry:

org/apache/http/ConnectionClosedException.class

解決方案

這個(gè)是在我們啟動(dòng)的時(shí)候報(bào)錯(cuò)的碉咆,而不是在編譯的時(shí)候,原因是這樣的兼雄,報(bào)這個(gè)錯(cuò)是因?yàn)橛?個(gè)庫(kù)中存在相同的類(lèi)吟逝。大家可以看到stackoverflow上有人也提了這樣的問(wèn)題。只需要?jiǎng)h除其中的一個(gè)就可以解決了赦肋。

(9)添加第三方依賴(lài)出現(xiàn)的問(wèn)題

Error:Execution failed for task ':

app:processDebugManifest'.

>

Manifest merger failed :

uses-sdk:minSdkVersion 14 cannot be smaller than version

19 declared in library [com.github.meikoz:basic:2.0.3]

/AndroidStudioCode/EnjoyLife/app/build/intermediates/

exploded-aar/

com.github.meikoz/basic/2.0.3/AndroidManifest.xml

Suggestion: use tools:overrideLibrary="com.android.core"

to force usage

錯(cuò)誤原因

出現(xiàn)這個(gè)錯(cuò)誤的原因是我引入的第三方庫(kù)最低支持版本高于我的項(xiàng)目的最低支持版本块攒,異常中的信息顯示:我的項(xiàng)目的最低支持版本為14,而第三方庫(kù)的最低支持版本為19佃乘,所以?huà)伋隽诉@個(gè)異常囱井。

解決方案

在AndroidManifest.xml文件中標(biāo)簽中添加

<uses-sdk tools:overrideLibrary="xxx.xxx.xxx"/>

其中的xxx.xxx.xxx為第三方庫(kù)包名,如果存在多個(gè)庫(kù)有此異常趣避,則用逗號(hào)分割它們庞呕,例如:

<uses-sdk tools:overrideLibrary="xxx.xxx.aaa, xxx.xxx.bbb"/>

這樣做是為了項(xiàng)目中的AndroidManifest.xml和第三方庫(kù)的AndroidManifest.xml合并時(shí)可以忽略最低版本限制。

(10)Android studio 編譯問(wèn)題:finished with non-zero exit value 1(由于buildtools版本太高造成的)

錯(cuò)誤

Error:Execution failed for task ':app:

transformClassesWithDexForDebug'.

> com.android.ide.common.process.ProcessException:

org.gradle.process.internal.ExecException:

Process 'command '/Library/Java/JavaVirtualMachines/

jdk1.7.0_79.jdk/Contents/Home/bin/java''

finished with non-zero exit value 1

錯(cuò)誤原因

buildToolsVersion版本太高程帕,我原來(lái)的 buildToolsVersion "24.0.0” 需要jdk1.8住练,而我的是jdk1.7,所以一直報(bào)這個(gè)錯(cuò)愁拭,剛開(kāi)始以為是v4包和V7包沖突讲逛,因?yàn)橹坝龅竭@樣的問(wèn)題,而這次刪除V4包之后依然報(bào)這個(gè)錯(cuò)岭埠,上stackoverflow搜了一下盏混,把buildTools版本降下來(lái)就好了。

解決方案

android {

compileSdkVersion 23

buildToolsVersion "23.0.3"

}

(11)Android studio 編譯問(wèn)題:Gradle DSL not found 'android()'


clipboard.png

解決方案

配置build.gradle:

buildscript {

repositories { ?

jcenter()

}

dependencies { ?

classpath 'com.android.tools.build:gradle:2.1.2'

? }

}

allprojects { ?

repositories { ? ?

jcenter()

? }

}

buildscript {

repositories { ? ? ?

jcenter()

}

dependencies {

classpath 'com.android.tools.build:gradle:2.1.2'

? ?}

}

allprojects {

repositories {

jcenter()

? ?}

}

配置app/build.gradle:

apply plugin: 'com.android.application'android {

compileSdkVersion 23

buildToolsVersion '23.0.3'

defaultConfig {

minSdkVersion 9 targetSdkVersion 23 versionCode 1

versionName '1.0'

? ? ? ? ? ? }

}

dependencies {

compile 'com.android.support:appcompat-v7:23.2.1'

}

最后再同步一下sync即可惜论。

(12)Android studio 編譯問(wèn)題:Gradle DSL not found 'android()'

問(wèn)題描述

Error:(51, 52) 錯(cuò)誤: -source 1.6 中不支持 diamond 運(yùn)算符

(請(qǐng)使用 -source 7 或更高版本以啟用 diamond 運(yùn)算符)

解決方案

方案一


將標(biāo)紅處設(shè)置為1.7.png


修改soure為1.7.png

方案二

在build gradle中進(jìn)行配置如下代碼:

android {

compileOptions {sourceCompatibility JavaVersion.VERSION_1_7

targetCompatibility JavaVersion.VERSION_1_7

}

}

最后同步一下即可

(13)Android studio Build時(shí)沒(méi)問(wèn)題就是Run不起來(lái)许赃。

問(wèn)題描述:尤其是在加入一些依賴(lài)之后,這時(shí)build可以就表示 compile一些libs已經(jīng)生成了sdk馆类,但是run得時(shí)候 AS走了自己的緩存混聊,導(dǎo)致運(yùn)行上次錯(cuò)誤的緩存的,這時(shí)候無(wú)論怎么clean乾巧、rebuild等都是沒(méi)有效果的技羔,因?yàn)锳S的緩存一直存在。卧抗。藤滥。。

解決方案:這時(shí)候只有重啟AS清除緩存之后重新run就好了社裆,極端的情況下拙绊,重啟電腦也是不錯(cuò)的選擇。關(guān)于AS緩存問(wèn)題稍后會(huì)作詳細(xì)總結(jié)。标沪。榄攀。


快速編輯模式去掉

File Setting instant Run

(13)Android studio 從java 1.7修改至1.8導(dǎo)致的bug。

使用androidstudio2.2.0編譯提出需要java.

Error:Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.

原因:

2016 年 3 月 10 日金句, Google 向外界發(fā)布了 Android N 的預(yù)覽版檩赢,并宣布了 Android N 的?Roadmap?,Android N 的最終版源代碼將于今年 8 或 9 月份釋出到 AOSP 項(xiàng)目违寞。

在眾多的 Android N 新特性中贞瞒,有一項(xiàng)新工具鏈的出現(xiàn)與 Android 生態(tài)圈的所有開(kāi)發(fā)者息息相關(guān),即 Jack & Jill 編譯器的引入趁曼。在依賴(lài)了 Sun/Oracle 的 Java 編譯器十年之后军浆,Jack 是 Java Android Compiler Kit 的縮寫(xiě),它可以將 Java 代碼直接編譯為 Dalvik 字節(jié)碼挡闰,并負(fù)責(zé) Minification, Obfuscation, Repackaging, Multidexing, Incremental compilation乒融。它試圖取代 javac/dx/proguard/jarjar/multidex 庫(kù)等工具。

Android 終于有了自己的 Java 編譯器摄悯。Android7.0(API24)在對(duì)JAVA8的支持上赞季,需要使用新的編譯器。

解決方法:

defaultConfig {

? ? ? ? applicationId "com.xxx"

? ? ? ? minSdkVersion 19

? ? ? ? targetSdkVersion 24

? ? ? ? versionCode 1

? ? ? ? versionName "1.0"

? ? ? ??jackOptions {

? ? ? ? ? ? enabled true

? ? ? ? }

}

在defaultConfig中添加紅色部分即可

(14)下載不了?

Error:Failed to open zip file.

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)

Re-download dependencies and sync project (requires network)

解決這個(gè)問(wèn)題的辦法有好幾個(gè):

1.可以把gradle-wrapper.properties里修改了gradle的版本奢驯,與之前沒(méi)有報(bào)錯(cuò)的gradle版本一致申钩,然后再修改項(xiàng)目build.gradle文件中的com.android.tools.build:gradle的版本號(hào),具體是多少也是參照以前那些沒(méi)有報(bào)錯(cuò)的項(xiàng)目叨橱。

2.直接在網(wǎng)上找到gradle-3.3-all.zip下載下來(lái),不要解壓縮断盛,放在類(lèi)似下面的目錄中?C:\Users\Administrator\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9罗洗,這個(gè)辦法沒(méi)有試過(guò),按理說(shuō)是可以的钢猛。下載地址在這里找:http://services.gradle.org/distributions/?伙菜,里面各個(gè)版本都有。

3. 最簡(jiǎn)單的方法命迈,也是我采用的方法贩绕,就是改一下gradle-wrapper.properties中的distributionUrl

distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

改成

distributionUrl=http\://services.gradle.org/distributions/gradle-3.3-all.zip

以上都解決不了的話(huà)就直接把項(xiàng)目的的gradle文件夾刪掉重新try

(15)將Eclipse項(xiàng)目導(dǎo)入到Android studio 中 很多點(diǎn)9圖出現(xiàn)問(wèn)題解決方法:

在build.gradle里添加以下兩句:

aaptOptions.cruncherEnabled = false? ?

aaptOptions.useNewCruncher = false

用來(lái)關(guān)閉Android Studio的PNG合法性檢查的,直接不讓它檢查壶愤。

(16)Android Studio 錯(cuò)誤: 非法字符: '\ufeff' 解決方案|錯(cuò)誤: 需要class, interface或enum

原因:

Eclipse可以智能的把UTF-8+BOM文件轉(zhuǎn)為普通的UTF-8文件淑倾,Android Studio還沒(méi)有這個(gè)功能,所以使用Android Studio編譯UTF-8+BOM編碼的文件時(shí)會(huì)出現(xiàn)”非法字符: '\ufeff' “之類(lèi)的錯(cuò)誤

解決方法:

手動(dòng)將UTF-8+BOM編碼的文件轉(zhuǎn)為普通的UTF-8文件征椒。**

**用EdItPlus打開(kāi).java文件依次:文檔》文本編輯》轉(zhuǎn)換文本編碼》選擇UTF-8編碼即可

(3)將項(xiàng)目導(dǎo)入到AS中出現(xiàn)以下問(wèn)題:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.bui

解決方法:

在build.grade中添加以下代碼:

android{

packagingOptions {

exclude 'META-INF/DEPENDENCIES.txt'

exclude 'META-INF/NOTICE'

exclude 'META-INF/NOTICE.txt'

exclude 'META-INF/LICENSE'

exclude 'META-INF/LICENSE.txt'

? ? ? ? ? }

}

(17)未知錯(cuò)誤

Error:Timeout waiting to lock cp_proj class cache for build file '/Users/Mr.xiao/Desktop/AndroidShopNC2014MoblieNew/androidShopNC2014Moblie/build.gradle'

(/Users/Mr.xiao/.gradle/caches/2.10/scripts/build_3cyr7hzjurcc62ge3ixidshos/cp_proj).

It is currently in use by another Gradle instance.

Owner PID: unknown

Our PID: 1412

Owner Operation: unknown

Our operation: Initialize cache

Lock file: /Users/Mr.xiao/.gradle/caches/2.10/scripts/build_3cyr7hzjurcc62ge3ixidshos/cp_proj/cache.properties.lock

解決方案

以上是錯(cuò)誤提示娇哆。

解決的思路很簡(jiǎn)單只需要把cache.properties.lock文件刪除了就可以了。當(dāng)時(shí)我們刪除的時(shí)候會(huì)被占用這時(shí)候需要進(jìn)入任務(wù)管理器結(jié)束關(guān)于java的進(jìn)程就行比如 java 的jdk 刪除后重啟讓java jdk啟動(dòng)? 啟動(dòng)Android Studio就能啟動(dòng)APK了。

(18)修改了Android項(xiàng)目的最小SDK版本之后出現(xiàn)很多stysle文件找不到

解決方案

compileSdkVersion 23

buildToolsVersion "23.0.3"

defaultConfig {

applicationId "net.mmloo2014.android"

minSdkVersion 14

targetSdkVersion 23

}

compileSdkVersion 是多少版本的

那么compile 'com.android.support:appcompat-v7:23.2.1’ 就是啥版本的碍讨。

(19)Android studio 編譯問(wèn)題:finished with non-zero exit value 2

問(wèn)題:

Error:Execution failed for task ':androidShopNC2014Moblie:transformClassesWithDexForDebug'.

>

com.android.build.api.transform.TransformException:

com.android.ide.common.process.ProcessException:

java.util.concurrent.ExecutionException:

com.android.ide.common.process.ProcessException:

org.gradle.process.internal.ExecException:

Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

解決方案

這個(gè)錯(cuò)誤在app的build.gradle里面添加下面這句就好了治力。

android {

defaultConfig {

multiDexEnabled true

? ? ? }

}

(20)Failed to finalize session : INSTALL_FAILED_INTERNAL_ERROR

? ? Session 'app': Error Installing APKs


網(wǎng)上解決方案不一, 對(duì)自己有用的方案如下:

“File”-->“Settings”-->“Build, Exexution,Deployment”-->“Instant Run”

將如下勾選框去掉勃黍,確定宵统,


(21)Error:Please select Android SDK

解決方法:


<orderEntry type="jdk" jdkName="Android API 26 Platform" jdkType="Android SDK" />

.iml文件里面


加入上面這行

(22)Error:This?Gradle?plugin?requires?Studio?3.0?minimum

Android studio版本太低,導(dǎo)入的項(xiàng)目版本高其實(shí)也就是Gradle從高版本導(dǎo)入到低版本里面了

?今天遇到了一個(gè)Error:This Gradle plugin requires Studio 3.0 minimum這樣的問(wèn)題覆获,我覺(jué)得是我的studio的版本不夠高马澈,我的studio是2.3.3版本的,導(dǎo)入的項(xiàng)目的版本應(yīng)該是3.0的锻梳,其實(shí)我們可以這樣箭券,將以下內(nèi)容添加到gradle.properties中:

解決方法:

1.升級(jí)現(xiàn)有的Android studio

2.其實(shí)我們可以這樣,將以下內(nèi)容添加到gradle.properties中:android.injected.build.model.only.versioned = 3


*****************************************************

最近一直想將自己編寫(xiě)程序時(shí)遇到的錯(cuò)誤總結(jié)一下疑枯,但因?yàn)橹T多原因一直都沒(méi)付諸行動(dòng)辩块。這個(gè)錯(cuò)誤總結(jié)本人將會(huì)不斷更新,以下錯(cuò)誤是本人遇到并解決了荆永,編程工具Android studio 2.0废亭。

錯(cuò)誤提示一:

Error:Execution failed for task ':app:processDebugResources'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Administrator\AppData\Local\Android\sdk1\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

問(wèn)題描述及解決辦法:如果你只改動(dòng)了程序的某個(gè)小的部分,但是報(bào)這個(gè)錯(cuò)具钥,只要點(diǎn)擊Build->clear project就可以解決酒贬。

錯(cuò)誤提示二:

Error:A problem occurred configuring project ':app'.> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.? > Could not find com.android.support:appcompat-v7:23.4.0.? ? Required by:

? ? ? ? xcmg:app:unspecified

? > Could not find com.google.android.gms:play-services-appindexing:8.1.0.? ? Required by:

? ? ? ? xcmg:app:unspecified

? > Could not find com.android.support:support-v4:23.4.0.? ? Required by:

? ? ? ? xcmg:app:unspecified

問(wèn)題描述及解決辦法:如果你是導(dǎo)入新的已存在的代碼,按如下步驟可解決問(wèn)題(這是本人遇到的問(wèn)題秦驯,不一定適合所有此類(lèi)問(wèn)題)?

步驟1?

點(diǎn)擊SDK Manager——>SDK Tools 勾選google respository——>apply然后跟著提示走即可蝴乔。?


步驟2:上述步驟完成后,再點(diǎn)擊Build——>clean project即可

錯(cuò)誤提示三:

Error:A problem occurred configuring project ':app'.> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.? > Could not find com.android.support:appcompat-v7:23.4.0.? ? Required by:

? ? ? ? xcmg:app:unspecified

? > Could not find com.android.support:support-v4:23.4.0.? ? Required by:

? ? ? ? xcmg:app:unspecified

? > Could not find com.android.support:support-v4:23.4.0.? ? Required by:

? ? ? ? xcmg:app:unspecified > com.google.android.gms:play-services-appindexing:8.1.0 > com.google.android.gms:play-services-basement:8.1.0

問(wèn)題描述及解決辦法:如果你是導(dǎo)入新的已存在的代碼宁玫,按如下步驟可解決問(wèn)題(這是本人遇到的問(wèn)題粗恢,不一定適合所有此類(lèi)問(wèn)題)?

步驟1?

點(diǎn)擊SDK Manager——>SDK Tools 勾選android support respository——>apply然后跟著提示走即可。?


步驟2?

上述步驟完成后欧瘪,再點(diǎn)擊Build——>clean project即可

錯(cuò)誤提示四

Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "e0a7992f192675817297767391b8206ce7252324"<a href="fixGradleElements">Fix plugin version and sync project</a><br><a href="openFile:F:\Androidstudio\ListViewDemo\app\build.gradle">Open File</a>

問(wèn)題描述及解決辦法:如果你是在導(dǎo)入一個(gè)包時(shí)出現(xiàn)這個(gè)問(wèn)題眷射,那么按以下步驟來(lái)修改。

步驟一:打開(kāi)build.gradle佛掖,找到classpath,如圖

是這里的classpath值不對(duì)妖碉,那么,怎么設(shè)置這里的值呢芥被?

步驟二:File——>project structure?


步驟三:project——>將android plugin version里的內(nèi)容寫(xiě)入步驟一的classpath里欧宜。


步驟四:上述步驟完成后,再點(diǎn)擊Build——>clean project即可?

(未完待續(xù)……)

錯(cuò)誤提示五?

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class


解決方案:在工程的混淆配置文件 proguard-rules.pro 中加入下面這句代碼即可:?

-keepattributes EnclosingMethod

錯(cuò)誤提示六?

All packages are not available for download!The following packages are not available:-Package id platforms;android-1?


解決方案:抽出數(shù)據(jù)線(xiàn)然后重新插上拴魄。嗯鱼鸠,不要問(wèn)我為什么猛拴,我就是這樣解決的。

錯(cuò)誤提示七?

Error:(16, 0) Could not find method android() for arguments

解決方案:在工程的最外層的build.gradle文件里刪除android{}


問(wèn)題提示八?

Could not find method compile() for arguments

解決方案:在工程的最外層的build.gradle文件里的dependencies刪除complie內(nèi)容蚀狰。然后rebuild project和clean project.?


問(wèn)題提示九:

Error:Unable to start the daemon process.

This problem might be caused by incorrect configuration of the daemon.

For example, an unrecognized jvm option is used.

Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.htmlPlease read the following process output to find out more:-----------------------Error occurred during initialization of VM

Could not reserve enough space for 2097152KB object heap

Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

解決方案一:在gradle.properties里添加


org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8org.gradle.parallel=true

解決方案二:在C:\Users\yds(當(dāng)前電腦用戶(hù)名).gradle(如果沒(méi)有新建)gradle.properties 文件里寫(xiě)下:

org.gradle.jvmargs=-Xmx1024m

錯(cuò)誤提示十

android.view.InflateException: Binary XML file line #243: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

解決方案:布局文件中寫(xiě)了個(gè)view(布局文件中我寫(xiě)的v為小寫(xiě)愉昆,應(yīng)該大寫(xiě)),改為View就行了麻蹋。

錯(cuò)誤提示十一:Failed to create jvm:error code -6


解決方案:在C:\Users\xxx(這里是電腦用戶(hù)名跛溉,沒(méi)有就是Admination).AndroidStudioxx.xx目錄下刪除studio.exe.vmoptions

錯(cuò)誤提示十二:

android.content.res.Resources$NotFoundException: String resource ID #0x2

解決方案:當(dāng)調(diào)用setText()方法時(shí)如果傳入int型是不會(huì)被當(dāng)成內(nèi)容而是resourceID來(lái)使用!所以把int轉(zhuǎn)成字符串類(lèi)型

錯(cuò)誤提示十三:

當(dāng)使用NagivationView時(shí)報(bào)錯(cuò):java.lang.reflect.InvocationTargetException

解決方案:(1)將Activity(入口Activity)寫(xiě)成CompatActivity扮授;(2)將Manifest里將該Activity的theme改為@style/Theme.AppCompat的主題芳室。

錯(cuò)誤提示十四:

Error:(1, 1) A problem occurred evaluating project ':app'.

> Failed to apply plugin [id 'com.android.application']

? > Could not create plugin of type 'AppPlugin'.


解決方案:是build.grade文件出問(wèn)題,問(wèn)題如下:?


替換成如下所示?


然后clear project

錯(cuò)誤十四

No such property: FOR_RUNTIME for class: org.gradle.api.attributes.Usage

自從Android studio升級(jí)到3.1版本刹勃,谷歌又折騰出讓你意想不到的錯(cuò)誤堪侯。。荔仁。伍宦。

從github上下了個(gè)項(xiàng)目用來(lái)學(xué)習(xí),卻出現(xiàn)了如下錯(cuò)誤:

1No such property: FOR_RUNTIME?for?class: org.gradle.api.attributes.Usage

?在網(wǎng)上搜索到的解決方法大都是讓把Gradle降級(jí)乏梁,但是新版本的AS最低Gradle版本是4.4次洼,沒(méi)有辦法降級(jí),這就讓人頭疼了遇骑。

查了很久卖毁,才找到解決辦法:

產(chǎn)生這個(gè)問(wèn)題的原因是項(xiàng)目中導(dǎo)入的一個(gè)module使用了bintray插件導(dǎo)致的,在module的build.gradle文件中將bintray相關(guān)代碼注釋掉落萎,之后進(jìn)行編譯亥啦,有可能會(huì)報(bào)其他錯(cuò)誤,這個(gè)時(shí)候就繼續(xù)刪錯(cuò)誤指向的語(yǔ)句练链,之后便能正常運(yùn)行翔脱。

錯(cuò)誤十五

Android:Gradle報(bào)錯(cuò)——No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

今天在使用科大訊飛語(yǔ)音識(shí)別SDK進(jìn)行語(yǔ)音識(shí)別功能實(shí)現(xiàn)時(shí),莫名的引入了這個(gè)錯(cuò)誤兑宇。不得不吐槽Android Studio再引入別的包時(shí)太容易出現(xiàn)沖突碍侦,然后導(dǎo)致無(wú)法找到R文件粱坤,項(xiàng)目無(wú)法執(zhí)行隶糕。

1. 具體報(bào)錯(cuò)

app/build/intermediates/res/merged/debug/values-v28/values-v28.xml Error:(7, 41) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius').

...

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt


2. 報(bào)錯(cuò)原因

在build項(xiàng)目時(shí)默認(rèn)使用了values-v28下的style.xml,但無(wú)法找到與該style.xml相匹配的資源


3. 解決辦法

修改build.gradle文件站玄,取消動(dòng)態(tài)依賴(lài)枚驻,指定特定版本的依賴(lài)

PS:最好將所有引用的包都改成同一版本的依賴(lài)

修改前:

compileSdkVersion 26buildToolsVersion '26.0.2'targetSdkVersion 26compile 'com.android.support:recyclerview-v7:+'compile 'com.android.support:appcompat-v7:+'

修改后:

compileSdkVersion 26buildToolsVersion '26.0.2'targetSdkVersion 26compile 'com.android.support:recyclerview-v7:26.0.2'compile 'com.android.support:appcompat-v7:26.0.2'


使用“+”時(shí),會(huì)自動(dòng)使用最新版本的values進(jìn)行build株旷,所以最好指定SDK的版本再登,避免不必要的錯(cuò)誤

當(dāng)項(xiàng)目編譯不過(guò)的時(shí)候可以嘗試以下方法


遇鑒問(wèn)題修復(fù)記錄

Android Studio and Gradle are using different locations for the JDK.

Android Studio: D:\RDTool\Android\Studio\jre

Gradle: C:\Program Files\Java\jdk1.8.0_191

Using different JDK locations might cause Gradle to spawn multiple daemons

when executing tasks for Android Studio and other external processes.


在Android studio升級(jí)后尔邓,打開(kāi)好久沒(méi)打開(kāi)的項(xiàng)目打包,突然就報(bào)這個(gè)錯(cuò)誤了锉矢,一直打包失敗

gradle的版本是

gradle-5.1.1-all.zip

百度都是clear和build梯嗽,完全沒(méi)有用。


最后發(fā)現(xiàn)Event log有個(gè)提示

Android Studio is using this JDK location:

?? ??? ??? ?D:\Android\Android Studio\jre

?? ??? ??? ?which is different to what Gradle uses by default:

?? ??? ??? ?C:\java\jdk1.8.0_101

?? ??? ??? ?Using different locations may spawn multiple Gradle daemons if

?? ??? ??? ?Gradle tasks are run from command line while using Android Studio.

?? ??? ??? ?More info...

?? ??? ??? ?Set Android Studio to use the same JDK as Gradle and sync project

?? ??? ??? ?Do not show this warning again


原來(lái)是我的jdk配置被改掉了沽损。灯节。。绵估。炎疆。

最后選擇Set Android Studio to use the same JDK as Gradle and sync project

設(shè)置一下jdk就可以成功打包了

Unable to load class 'org.gradle.api.internal.component.Usage'

我的運(yùn)行環(huán)境:

Ubuntu16.04系統(tǒng)

Android Studio 3.0 版本

下載https://github.com/JessYanCoding/ProgressManager示例后,在工程的build.gradle里面修該成我本地的版本如下:

在編譯的時(shí)候就出現(xiàn)了以下錯(cuò)誤:

Error:Unable to load class 'org.gradle.api.internal.component.Usage'.

Possible causes for this unexpected error include:

? Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)


? Re-download dependencies and sync project (requires network)

? The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

? Stop Gradle build processes (requires restart)

? Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.


In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.


解決

這是由于插件兼容問(wèn)題導(dǎo)致的錯(cuò)誤国裳,如果有com.novoda:bintray-release請(qǐng)把版本修改為0.5.0形入。

感謝weixin_41101173的提示,對(duì)于大于AndroidStudio3.14版本的,請(qǐng)改為0.8.0

再次編譯就ok了。

解決Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com

這個(gè)問(wèn)題是Android studio升級(jí)到3.0之后缝左,運(yùn)行的時(shí)候會(huì)提示gradle要升級(jí)到3.5版本才能編譯亿遂。于是我把我的gradle升級(jí)到了

?gradle-4.1-milestone-1 版本,是2017年7月份最新版本了盒使。

于是我把主程序的build.gradle中的gradle版本改成了這個(gè)崩掘,具體指定哪個(gè)版本我也不知道,于是就寫(xiě)了個(gè)3.0+

?dependencies?{

????????classpath?'com.android.tools.build:gradle:3.0+'?

}

然后再次編譯少办,又發(fā)現(xiàn)了毒苞慢。

提示:Error:All flavors must now belong to a named flavor dimension.Learn?more?at?https://d.android.com/r/tools/flavorDimensions-missing-error-message.html?

這個(gè)一個(gè)錯(cuò)誤,意思是:所有的flavors都必須屬于同一個(gè)風(fēng)格英妓。

=挽放。=懵逼

去翻墻看了它提供的地址才知道:

?Plugin?3.0.0?includes?a?new?dependency?mechanism?that?automatically?matches?variants?when?consuming?a?library.?This?means?an?app's?debug?variant?automatically?consumes?a?library's?debug?variant,?and?so?on.?It?also?works?when?using?flavors—an?app's?redDebug?variant?will?consume?a?library's?redDebug?variant.?To?make?this?work,?the?plugin?now?requires?that?all?flavors?belong?to?a?named?flavor?dimension?—even?if?you?intend?to?use?only?a?single?dimension.?Otherwise,?you?will?get?the?following?build?error:

Error:All flavors must now belong to a named flavor dimension.

The flavor 'flavor_name' is not assigned to a flavor dimension.

?To?resolve?this?error,?assign?each?flavor?to?a?named?dimension,?as?shown?in?the?sample?below.?Because?dependency?matching?is?now?taken?care?of?by?the?plugin,?you?should?name?your?flavor?dimensions?carefully.?For?example,?if?all?your?app?and?library?modules?use?the?foo?dimension,?you'll?have?less?control?over?which?flavors?are?matched?by?the?plugin.?

// Specifies a flavor dimension.

flavorDimensions "color"

productFlavors {

? ? red {

? ? ? // Assigns this product flavor to the 'color' flavor dimension.

? ? ? // This step is optional if you are using only one dimension.

? ? ? dimension "color"

? ? ? ...

? ? }

? ? blue {

? ? ? dimension "color"

? ? ? ...

? ? }

}

大致是說(shuō),Plugin?3.0.0之后有一種自動(dòng)匹配消耗庫(kù)的機(jī)制蔓纠,便于debug variant?自動(dòng)消耗一個(gè)庫(kù)辑畦,然后就是必須要所有的flavor 都屬于同一個(gè)維度。

為了避免flavor 不同產(chǎn)生誤差的問(wèn)題腿倚,應(yīng)該在所有的庫(kù)模塊都使用同一個(gè)foo尺寸纯出。

= 。=還是懵逼敷燎。說(shuō)一堆依然不是很理解暂筝。

但是我們從中已經(jīng)知道解決方案了:

在主app的build.gradle里面的

?defaultConfig {

?targetSdkVersion:***

minSdkVersion :***

versionCode:***

?versionName :***

//版本名后面添加一句話(huà),意思就是flavor?dimension 它的維度就是該版本號(hào)硬贯,這樣維度就是都是統(tǒng)一的了

flavorDimensions "versionCode"

示例

flavorDimensions "default"

}

就直接解決這個(gè)問(wèn)題焕襟。然后app 就可以happy的運(yùn)行起來(lái)了。

解決Error:All flavors must now belong to a named flavor dimension. Learn more at...

低版本的gradle里面不會(huì)出現(xiàn)這個(gè)錯(cuò)誤饭豹,高版本出現(xiàn)鸵赖,不多說(shuō)务漩,看如何解決

在defaultConfig{}中添加:

flavorDimensions "default"

保證所有的flavor 都屬于同一個(gè)維度

defaultConfig {? ? ? ? applicationId "com.status.channel"? ? ? ? minSdkVersion 15? ? ? ? targetSdkVersion 28? ? ? ? versionCode 1? ? ? ? versionName "1.0"? ? ? ? testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"? ? ? ? flavorDimensions "default"? ? }

How to Fix Error:(59, 8) error: cannot access ActivityCompatApi23 class file for android.support.v4.app.ActivityCompatApi23 not found

或者

Cannot access android.support.ActivityCompatApi23.RequestPermissionsRequestCodeVa;odator


不同的版本所致的可以使用下面這個(gè)解決方案

Code to fix?cannot access ActivityCompatApi23 in Android Studio

configurations.all {

? ? resolutionStrategy.eachDependency { DependencyResolveDetails details ->

? ? ? ? def requested = details.requested

? ? ? ? if (requested.group == 'com.android.support') {

? ? ? ? ? ? if (!requested.name.startsWith("multidex")) {

? ? ? ? ? ? ? ? details.useVersion '25.3.0'

? ? ? ? ? ? }

? ? ? ? }

? ? }

}


關(guān)于 '@android:attr/windowEnterAnimation' not found.的問(wèn)題(解決)

問(wèn)題描述:準(zhǔn)備要寫(xiě)個(gè)dialog展示和隱藏的動(dòng)畫(huà),很小的一個(gè)動(dòng)畫(huà)就可以解決它褪,但是寫(xiě)的過(guò)程中遇到了這個(gè)error: style attribute '@android:attr/windowEnterAnimation' not found.這個(gè)問(wèn)題饵骨,菜雞的我,立即開(kāi)始百度茫打,看了很多宏悦,綜合一下,有2種解決方案

1.把@去掉包吝,因?yàn)橐呀?jīng)不支持@開(kāi)頭的 android自帶屬性了

2.在gradle.properties 中添加android.enableAapt2=false? 因?yàn)槟J(rèn)Aapt是開(kāi)啟的(不知道你們理解不饼煞,反正我是不知道Aapt是啥)

我先嘗試了第一種方法,發(fā)現(xiàn)沒(méi)有效果诗越,還是報(bào)錯(cuò)砖瞧,而且看到網(wǎng)上有人和我一樣情況,我就確定這個(gè)確定不管用嚷狞,于是我就嘗試了第二種方法

成功了块促,這個(gè)問(wèn)題就這樣被我解決了

事實(shí)并不是這樣,等第二天我來(lái)到公司的時(shí)候床未,在運(yùn)行項(xiàng)目報(bào)錯(cuò)了?


這個(gè)問(wèn)題把我難住了竭翠,菜雞的我還是直接百度,但是這次百度啥也沒(méi)說(shuō)薇搁,說(shuō)是增強(qiáng)for使用的時(shí)候出錯(cuò)了斋扰,我擦,我沒(méi)用呀啃洋,重點(diǎn)是我這邊沒(méi)有日志传货,就這一條,苦逼的我宏娄,下載了最新版的as问裕,這次錯(cuò)誤信息出來(lái)了,結(jié)果就是因?yàn)榧恿薬ndroid.enableAapt2=false? 這句話(huà)導(dǎo)致的孵坚,沒(méi)辦法只能刪了這句話(huà)粮宛,最后我全局搜了一下@android:attr/windowEnterAnimation 這個(gè),發(fā)現(xiàn)其他地方?jīng)]改卖宠,我改了之后項(xiàng)目沒(méi)毛病了巍杈,還是第一種解決方案是對(duì)的

粗心大意的我。逗堵。秉氧。

C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\6a8b09efde42f84982ba083742b4753d\res\values\values.xml

Error:(1050, 5) error: resource style/Widget.AppCompat.DrawerArrowToggle (aka com.wcyq.wolfmvvmdemo:style/Widget.AppCompat.DrawerArrowToggle) not found.

Error:(862, 5) error: resource style/Widget.AppCompat.DrawerArrowToggle (aka com.wcyq.wolfmvvmdemo:style/Widget.AppCompat.DrawerArrowToggle) not found.

1.http://blog.csdn.net/qq_33337504/article/details/79129625

? ? 在gradle.properties 文件下添加?android.enableAapt2=false

2.http://blog.csdn.net/lyc088456/article/details/79011385?

? ?在AS 的左上角 選擇 -->File-->invalidated and Restart 一下

操作了,沒(méi)解決我的問(wèn)題.

一時(shí)間搞得很煩躁.后來(lái)自己改了下依賴(lài)版本號(hào),結(jié)果就好了,操

沒(méi)改之前; 這個(gè)是studio自動(dòng)生成的.

dependencies {

? ? implementation fileTree(dir: 'libs', include: ['*.jar'])

? ? implementation 'com.android.support:appcompat-<span style="color:#ff0000;">v7:26.+'</span>

? ? implementation 'com.android.support.constraint:constraint-layout:1.0.2'

? ? testImplementation 'junit:junit:4.12'

? ? androidTestImplementation 'com.android.support.test:runner:1.0.1'

? ? androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

}

改了之后;

dependencies {

? ? implementation fileTree(dir: 'libs', include: ['*.jar'])

? ? implementation 'com.android.support:appcompat-v<span>7:25.+</span>'

? ? implementation 'com.android.support.constraint:constraint-layout:1.0.2'

? ? testImplementation 'junit:junit:4.12'

? ? androidTestImplementation 'com.android.support.test:runner:1.0.1'

? ? androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

}

?程序能跑起來(lái)了.真是斃了狗了,studio一升級(jí),盡是些狗屁問(wèn)題,建議沒(méi)有升級(jí)的還是不要升級(jí)這些新版本,問(wèn)題搞的頭大!

27.Android app運(yùn)行到vivo手機(jī)上是彈出安裝失敗眷昆,安裝包損壞蜒秤。

我的解決方法是在 項(xiàng)目的 gradle.properties中加入一行這個(gè)代碼汁咏,重新運(yùn)行即可解決運(yùn)行安裝失敗的問(wèn)題。

android.injected.testOnly = false

28.Androidstudio 運(yùn)行app安裝失敗

該方法慎用

未完待續(xù)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末作媚,一起剝皮案震驚了整個(gè)濱河市攘滩,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌纸泡,老刑警劉巖漂问,帶你破解...
    沈念sama閱讀 219,490評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異女揭,居然都是意外死亡蚤假,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,581評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門(mén)吧兔,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)磷仰,“玉大人,你說(shuō)我怎么就攤上這事境蔼≡钇剑” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 165,830評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵箍土,是天一觀的道長(zhǎng)逢享。 經(jīng)常有香客問(wèn)我,道長(zhǎng)吴藻,這世上最難降的妖魔是什么瞒爬? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,957評(píng)論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮沟堡,結(jié)果婚禮上疮鲫,老公的妹妹穿的比我還像新娘。我一直安慰自己弦叶,他們只是感情好俊犯,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,974評(píng)論 6 393
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著伤哺,像睡著了一般燕侠。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上立莉,一...
    開(kāi)封第一講書(shū)人閱讀 51,754評(píng)論 1 307
  • 那天绢彤,我揣著相機(jī)與錄音,去河邊找鬼蜓耻。 笑死茫舶,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的刹淌。 我是一名探鬼主播饶氏,決...
    沈念sama閱讀 40,464評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼讥耗,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了疹启?” 一聲冷哼從身側(cè)響起古程,我...
    開(kāi)封第一講書(shū)人閱讀 39,357評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎喊崖,沒(méi)想到半個(gè)月后挣磨,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,847評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡荤懂,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,995評(píng)論 3 338
  • 正文 我和宋清朗相戀三年茁裙,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片节仿。...
    茶點(diǎn)故事閱讀 40,137評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡呜达,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出粟耻,到底是詐尸還是另有隱情查近,我是刑警寧澤,帶...
    沈念sama閱讀 35,819評(píng)論 5 346
  • 正文 年R本政府宣布挤忙,位于F島的核電站霜威,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏册烈。R本人自食惡果不足惜戈泼,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,482評(píng)論 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望赏僧。 院中可真熱鬧大猛,春花似錦、人聲如沸淀零。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 32,023評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)驾中。三九已至唉堪,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間肩民,已是汗流浹背唠亚。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,149評(píng)論 1 272
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留持痰,地道東北人灶搜。 一個(gè)月前我還...
    沈念sama閱讀 48,409評(píng)論 3 373
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親割卖。 傳聞我的和親對(duì)象是個(gè)殘疾皇子前酿,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,086評(píng)論 2 355