2015-07-10 67 views
3

我正在嘗試構建一個像Telegram.I的應用程序,我下載了他們的源代碼(Android版)(https://github.com/DrKLO/Telegram)。嘗試編譯時找不到文件電報源代碼

我的主要問題是,當我嘗試編譯代碼,並將其導出到我的手機,採用了Android工作室我recive這個錯誤:

錯誤:發現問題與任務「的配置: TMessagesProj:packageDebug」。

File 'C:\Users\Bogdan\Desktop\Telegram\Telegram-master\TMessagesProj\config\debug.keystore' specified for property 'signingConfig.storeFile' does not exist.

顯然一個文件丟失了,但是哪個,我該如何解決這個問題?

謝謝!

P.S.你能否給我提供一個類似這樣的應用程序的源代碼鏈接,或者類似於whatsapp?

回答

7

變化電報/ TMessagesProj /的build.gradle和刪除或註釋的gradle中配置簽名選項,如:!

apply plugin: 'com.android.application' 

repositories { 
    mavenCentral() 
} 

dependencies { 
    compile 'com.android.support:support-v4:22.2.+' 
    compile 'com.google.android.gms:play-services:3.2.+' 
    compile 'net.hockeyapp.android:HockeySDK:3.5.+' 
    compile 'com.googlecode.mp4parser:isoparser:1.0.+' 
} 

android { 
    compileSdkVersion 22 
    buildToolsVersion '22.0.1' 

    compileOptions { 
     sourceCompatibility JavaVersion.VERSION_1_7 
     targetCompatibility JavaVersion.VERSION_1_7 
    } 
/** 
    signingConfigs { 
     debug { 
      storeFile file("config/debug.keystore") 
     } 

     release { 
      storeFile file("config/release.keystore") 
      storePassword RELEASE_STORE_PASSWORD 
      keyAlias RELEASE_KEY_ALIAS 
      keyPassword RELEASE_KEY_PASSWORD 
     } 
    } 
*/ 
    buildTypes { 
     debug { 
      debuggable true 
      jniDebuggable true 
      // signingConfig signingConfigs.debug 
     } 

     release { 
      debuggable false 
      jniDebuggable false 
      //signingConfig signingConfigs.release 
     } 

     foss { 
      debuggable false 
      jniDebuggable false 
      // signingConfig signingConfigs.release 
     } 
    } 

    sourceSets.main { 
     jniLibs.srcDir 'libs' 
     jni.srcDirs = [] //disable automatic ndk-build call 
    } 

    sourceSets.debug { 
     manifest.srcFile 'config/debug/AndroidManifest.xml' 
    } 

    sourceSets.release { 
     manifest.srcFile 'config/release/AndroidManifest.xml' 
    } 

    sourceSets.foss { 
     manifest.srcFile 'config/foss/AndroidManifest.xml' 
    } 

    defaultConfig { 
     minSdkVersion 8 
     targetSdkVersion 22 
     versionCode 572 
     versionName "3.0.1" 
    } 
} 
+0

謝謝你這是問題 –

+0

BTW你知道我如何能阻止的方法從Telegram接收短信,以及如何繞過代碼驗證過程? –

相關問題