找不到io.objectbox:objectbox-gradle-plugin:1.3.3

时间:2017-12-06 09:57:31

标签: java android ormlite objectbox android-orm

我正在尝试在我现有的android项目中集成对象框但是收到错误。 是否有任何JAVA 8版本问题或对象框兼容性问题。 是否有任何gradle版本和对象框兼容性问题。我被困在这一点上。



    html, body{
      height: 100%;
    }
    body { 
    			background-image: url(http://ppcdn.500px.org/75319705/1991f76c0c6a91ae1d23eb94ac5c7a9f7e79c480/2048.jpg) ;
    			background-position: center center;
    			background-repeat:  no-repeat;
    			background-attachment: fixed;
    			background-size:  cover;
    			background-color: #999;
      
    }

    div, body{
      margin: 0;
      padding: 0;          
    }
    .wrapper {
      height: 100%; 
      width: 100%; 
    }




以下是我的gradle文件 Build.gradle:



    <div class="wrapper">
      <div class="message"></div>
    </div>
&#13;
&#13;
&#13;

和模块级别gradle:

&#13;
&#13;
Error:Could not find io.objectbox:objectbox-gradle-plugin:1.3.3.
Searched in the following locations:
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/io/objectbox/objectbox-gradle-plugin/1.3.3/objectbox-gradle-plugin-1.3.3.pom
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/io/objectbox/objectbox-gradle-plugin/1.3.3/objectbox-gradle-plugin-1.3.3.jar
    https://maven.fabric.io/public/io/objectbox/objectbox-gradle-plugin/1.3.3/objectbox-gradle-plugin-1.3.3.pom
    https://maven.fabric.io/public/io/objectbox/objectbox-gradle-plugin/1.3.3/objectbox-gradle-plugin-1.3.3.jar
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

在你的模块public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnIF_Click(object sender, EventArgs e) { int[] i = new int[1]; txtNumK.Text = i[0].ToString(); { Console.WriteLine("Please enter test " + i); bool result = int.TryParse(Console.ReadLine(), out i[0]); if (!result) { Console.WriteLine("This program only accept numbers."); } if (i[0] >= 90) { Console.WriteLine("note is A"); } if (i[0] >= 80) { Console.WriteLine("note is B"); } if (i[0] >= 70) { Console.WriteLine("note is C"); } if (i[0] >= 60) { Console.WriteLine("note is D"); } if (i[0] >= 0) { Console.WriteLine("note is F"); } else if (i[0] > 0 || i[0] < 100) { Console.WriteLine("I'm sorry, the number MUST be between 0 and 100"); } Console.WriteLine("Your result is:" + i[0]); } } private void txtNumK_TextChanged(object sender, EventArgs e) { } } } 中,你缺少回购。

将此部件从顶部gradle文件移动到模块1:

gradle.build