2015-07-10 92 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接收短信,以及如何绕过代码验证过程? –